M
M
Michal Palych2020-08-27 15:41:18
Python
Michal Palych, 2020-08-27 15:41:18

How to do timezone correction in strftime?

How to make a time zone correction through (or "in", as it will be correct) strftime?
For example, there is a code that runs on a hosting:

mesage_time = ctx.message.created_at.strftime("%H:%M")

But it ends up outputting the time as UTC, without GMT correction
How to "add" UTC time with time zone?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question