Y
Y
Yeldos Adetbekov2017-02-25 20:46:52
Django
Yeldos Adetbekov, 2017-02-25 20:46:52

Why is time misbehaving in django?

Welcome all! Never faced such a problem before. Deployed a django project. But the time somehow began to behave inappropriately:
1) Time stuck (For example, posts were published with the same time)
2) Lagged behind
I tried to synchronize via ntp, everything seemed to work out somehow. Gunicorn restart. And lo and behold, everything works, but after a few hours, the same thing occurs.
I dug further and found that you can change USE_TZ = True to USE_TZ = False, and lo and behold, everything works.
But a pancake again the same trouble.
By the way, I have TIME_ZONE = 'Asia/Almaty'
All this is somehow strange. Maybe this system writes itself? Please help)))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2017-02-26
@dosya97

stackoverflow.com/questions/2771676/django-datetim...

D
Dimonchik, 2017-02-25
@dimonchik2013

if you don’t read the docks, make a lot of discoveries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question