From 4b58f3b23faae03a250267edb95d873ca7e9444a Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Mon, 16 Feb 2026 13:17:31 +1100 Subject: [PATCH] BE+FE: refactor timezone UTC additional work #1506 Signed-off-by: jokob-sk --- server/scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/scheduler.py b/server/scheduler.py index 67fd8c83..33f98f11 100755 --- a/server/scheduler.py +++ b/server/scheduler.py @@ -3,7 +3,7 @@ import datetime from logger import mylog -from utils.datetime_utils import timeNowUTC +from utils.datetime_utils import timeNowTZ # ------------------------------------------------------------------------------- @@ -28,11 +28,11 @@ class schedule_class: # Initialize the last run time if never run before if self.last_run == 0: self.last_run = ( - timeNowUTC(as_string=False) - datetime.timedelta(days=365) + timeNowTZ(as_string=False) - datetime.timedelta(days=365) ).replace(microsecond=0) # get the current time with the currently specified timezone - nowTime = timeNowUTC(as_string=False) + nowTime = timeNowTZ(as_string=False) # Run the schedule if the current time is past the schedule time we saved last time and # (maybe the following check is unnecessary)