-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Use UTC dates #1362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Lonami I guess we all agree it should be UTC, but it is a breaking change. Maybe we can get it in before official v12 release? |
I agree, since there's a breaking change spree for v12, might as well add this in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
python-telegram-bot/telegram/utils/helpers.py
Lines 78 to 90 in 4397903
Should probably be using
tz=timezone.utc
. Python'sdatetime
isn't the best, andfromtimestamp
by default sets notz
information, which uses the local time, which in turn is generally a bad idea.The text was updated successfully, but these errors were encountered: