mirror of https://github.com/zulip/zulip.git
562bc6429c
When you pass a naive datetime to the Django ORM, it uses settings.TIME_ZONE for the time zone. In the development environment, both settings.TIME_ZONE and datetime.now() use 'America/New_York', so there is no change in behavior there. (fromtimestamp with no tz argument uses the same timezone as datetime.now) We are soon going to change settings.TIME_ZONE to UTC, so need to remove naive datetimes from queries to the ORM. |
||
---|---|---|
.. | ||
lib | ||
management | ||
migrations | ||
tests | ||
__init__.py | ||
models.py | ||
urls.py | ||
views.py |