I am using the telethon library to making telegram bots.
when I using event.date
it was printing the time on +00.00 time zone.
How can I print time on specific timezone
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
See python – Convert UTC datetime string to local datetime. Stealing the top answer which uses
python-dateutil
:have a look in datetime library