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:
parent
9285bc2e52
commit
c0be5c91f7
1 changed files with 6 additions and 6 deletions
|
@ -13,13 +13,13 @@ const TimeZone: React.FC = () => {
|
||||||
|
|
||||||
const [currentTime, setCurrentTime] = useState(getLocalTime(publicationTimezone));
|
const [currentTime, setCurrentTime] = useState(getLocalTime(publicationTimezone));
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setCurrentTime(getLocalTime(publicationTimezone));
|
const timer = setInterval(() => {
|
||||||
// const timer = setInterval(() => {
|
setCurrentTime(getLocalTime(publicationTimezone));
|
||||||
// }, 1000);
|
}, 1000);
|
||||||
|
|
||||||
// return () => {
|
return () => {
|
||||||
// clearInterval(timer);
|
clearInterval(timer);
|
||||||
// };
|
};
|
||||||
}, [publicationTimezone]);
|
}, [publicationTimezone]);
|
||||||
|
|
||||||
const buttons = [
|
const buttons = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue