zulip/analytics
Rishi Gupta 562bc6429c Replace datetime.now() with timezone.now() in Django ORM queries.
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.
2017-03-01 22:54:28 -08:00
..
lib analytics: Change time_range to not include current day/hour. 2017-02-02 10:59:52 -08:00
management Replace datetime.now() with timezone.now() in Django ORM queries. 2017-03-01 22:54:28 -08:00
migrations analytics: Add indexes to optimize performance of aggregation. 2017-02-01 15:47:49 -08:00
tests analytics: Add tests for views code. 2017-02-11 14:51:01 -08:00
__init__.py Create "analytics" app with activity reports. 2013-11-06 12:07:32 -05:00
models.py analytics: Base default views end_time on FillState, not current time. 2017-02-10 14:41:07 -08:00
urls.py analytics: Add comment explaining server admin routes. 2017-02-02 16:23:10 -08:00
views.py Change datetime.now(tz=X) to timezone.now(). 2017-03-01 22:54:28 -08:00