From 9a4be640d135a7567af2c46bf091bd122a8d5097 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Fri, 19 Jul 2024 08:53:26 +0300 Subject: [PATCH] update timezone --- src/main.py | 4 +++- version | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index a85b048..3fb75f8 100644 --- a/src/main.py +++ b/src/main.py @@ -13,6 +13,8 @@ logging.basicConfig(format="%(asctime)s | %(name)s | %(levelname)s | %(message)s logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) +delta = dt.timedelta(hours=3) +tz_msk = dt.timezone(offset=delta, name="MSK") if __name__ == "__main__": session_file = os.environ['SESSION_FILE'] @@ -49,7 +51,7 @@ if __name__ == "__main__": def scheduled(): schedule = Scheduler() # schedule.cyclic(dt.timedelta(seconds=10), shkolniy_weather_job) - schedule.daily(dt.time(hour=7, minute=0), shkolniy_weather_job) + schedule.daily(dt.time(hour=9, minute=0, tzinfo=tz_msk), shkolniy_weather_job) while True: schedule.exec_jobs() time.sleep(1) diff --git a/version b/version index f477849..373f8c6 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.2.2 \ No newline at end of file +0.2.3 \ No newline at end of file