Skip to content

Commit f115e5a

Browse files
committed
refactor: replace pytz with zoneinfo for timezone handling
1 parent e0015f4 commit f115e5a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ matplotlib>=3.5.3
22
python-dotenv>=1.0.1
33
python-telegram-bot>=21.1.1
44
python-telegram-bot[job-queue]
5-
pytz>=2024.1
65
yfinance>=0.2.38

tfinance/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
2+
from zoneinfo import ZoneInfo
23

3-
import pytz
44
from dotenv import load_dotenv
55

66
load_dotenv()
@@ -9,4 +9,4 @@
99
BOT_TOKEN = os.getenv("BOT_TOKEN")
1010
DATABASE_NAME = os.getenv("DATABASE_NAME")
1111

12-
TIMEZONE = pytz.timezone("Europe/Moscow")
12+
TIMEZONE = ZoneInfo("Europe/Moscow")

0 commit comments

Comments
 (0)