A
A
Arsen Abakarov2016-09-16 20:27:33
PostgreSQL
Arsen Abakarov, 2016-09-16 20:27:33

Django and time storage?

There is Django and Postgresql, the pytz package is installed on the server, the belt is registered in settings.py and USE_TZ = True
The Django backend stores the time in the database in the ts_with_tz format, how to store without_tz? Just want to store in UTC without zones
Postgres 9.5
Django 1.8

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mykola, 2016-09-16
@ArsenAbakarov

UTC - this is the time zone with offset = 0. The
question is what do you want :)?
Display time in UTC? - then with the help of pytz delete tz.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question