0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Re-set auto time update in Admin X Settings

refs. https://github.com/TryGhost/Team/issues/3150
This commit is contained in:
Peter Zimon 2023-05-18 13:44:37 +02:00
parent 9285bc2e52
commit c0be5c91f7

View file

@ -13,13 +13,13 @@ const TimeZone: React.FC = () => {
const [currentTime, setCurrentTime] = useState(getLocalTime(publicationTimezone)); const [currentTime, setCurrentTime] = useState(getLocalTime(publicationTimezone));
useEffect(() => { useEffect(() => {
const timer = setInterval(() => {
setCurrentTime(getLocalTime(publicationTimezone)); setCurrentTime(getLocalTime(publicationTimezone));
// const timer = setInterval(() => { }, 1000);
// }, 1000);
// return () => { return () => {
// clearInterval(timer); clearInterval(timer);
// }; };
}, [publicationTimezone]); }, [publicationTimezone]);
const buttons = [ const buttons = [