bitbot-3.11-fork/modules/tweets
Dax fcbeaf3114 [Tweets] Fix tweet age calc for TZ!=UTC
dt is a naive datetime object, so its timezone is assumed to be the system timezone. However, the actual timezone from the API is UTC. Therefore, we need to set tzinfo before doing the calculation. See the note at https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp for more info.

Ideally this would be fixed in tweepy, but there's a report of this on forums from 7 years ago so let's just fix it in BitBot.

This bug found by an anonymous contributor. Thank you 😺!
2020-11-05 06:00:45 +00:00
..
__init__.py also support twitter mobile urls 2019-10-20 17:10:01 +01:00
format.py [Tweets] Fix tweet age calc for TZ!=UTC 2020-11-05 06:00:45 +00:00