update timezone
This commit is contained in:
parent
5ed0f9c4e7
commit
9a4be640d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user