A
A
anokhovd2018-08-17 21:06:28
Python
anokhovd, 2018-08-17 21:06:28

Why is datetime.now().time() showing the wrong time?

I put the datetime module on armbian, it was the wrong time.
After installation, I noticed this, changed it, but print(datetime.now().time) is still not my time.
What can be done?Datetime reinstalled

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anokhovd, 2018-08-17
@anokhovd

Changing the timezone helped.

S
SubGANs, 2018-08-17
@SubGANs

And whose time shows? Does the system show the time correctly? Check the time in the interactive python console, if it is correct, it means that the time zone has been redefined somewhere in your program

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question