mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Re-set auto time update in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150
This commit is contained in:
parent
9285bc2e52
commit
c0be5c91f7
@ -13,13 +13,13 @@ const TimeZone: React.FC = () => {
|
||||
|
||||
const [currentTime, setCurrentTime] = useState(getLocalTime(publicationTimezone));
|
||||
useEffect(() => {
|
||||
setCurrentTime(getLocalTime(publicationTimezone));
|
||||
// const timer = setInterval(() => {
|
||||
// }, 1000);
|
||||
const timer = setInterval(() => {
|
||||
setCurrentTime(getLocalTime(publicationTimezone));
|
||||
}, 1000);
|
||||
|
||||
// return () => {
|
||||
// clearInterval(timer);
|
||||
// };
|
||||
return () => {
|
||||
clearInterval(timer);
|
||||
};
|
||||
}, [publicationTimezone]);
|
||||
|
||||
const buttons = [
|
||||
|
Loading…
Reference in New Issue
Block a user