Skip to content

Commit

Permalink
fix: correction of timezone name
Browse files Browse the repository at this point in the history
- fix of #6: `Europe/Kiev` replaced with `Europe/Kyiv` as Kyiv is not a Kiev and IANA Timezone updated in 2022
  • Loading branch information
yurnov authored Mar 27, 2024
2 parents e02db3b + 68b0b9a commit 664c01b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.exmple
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ TOKEN=<TOKEN>
CHAT_ID=<CHAT_ID>
# URL of API with compatiable format with http://alerts.net.ua/explosives_statuses_v2.json, optional
# URL=http://alerts.net.ua/explosives_statuses_v2.json
# Timezone, optional, default Europe/Kiev
# TIMEZONE=Europe/Kiev
# Timezone, optional, default Europe/Kyiv
# TIMEZONE=Europe/Kyiv
# List of regions to filter, don't use spaces, single line, optional
# REGION_LIST="Одеська область","Київська область","Житомирська область","м. Київ","Львівська область"
# Full list of regions:
Expand Down
4 changes: 2 additions & 2 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
REGION_LIST = [region.strip('"') for region in REGION_LIST]

if not TIMEZONE:
logger.warning("TIMEZONE is not defined in .env file, using a default timezone Europe/Kiev")
TIMEZONE = "Europe/Kiev"
logger.warning("TIMEZONE is not defined in .env file, using a default timezone Europe/Kyiv")
TIMEZONE = "Europe/Kyiv"

logger.info(f"Bot started with CHAT_ID: {CHAT_ID}")
logger.info(f"Following regions will be monitored: {REGION_LIST}")
Expand Down

0 comments on commit 664c01b

Please sign in to comment.