zulip/zerver
Rishi Gupta 0596c4a810 analytics: Enforce various datetime arguments are in UTC.
Sort of a hacky hammer, but
* The original design of the analytics system mistakenly attempted to play
  nicely with non-UTC datetimes.
* Timezone errors are really hard to find and debug, and don't jump out that
  easily when reading code.

I don't know of any outstanding errors, but putting a few "assert this
timezone is in UTC" around will hopefully reduce the chance that there are
any current or future timezone errors.

Note that none of these functions are called outside of the analytics code
(and tests). This commit also doesn't change any current behavior, assuming
a database where all datetimes have been being stored in UTC.
2017-10-05 11:22:06 -07:00
..
fixtures build_emoji: Extend emoji mappings to use new emojis from iamcal dataset. 2017-10-04 23:09:14 -07:00
lib analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
management subdomains: Hardcode can_add_realm_domains=True. 2017-10-02 16:32:10 -07:00
migrations zerver/migrations: Remove from __future__ import *. 2017-09-28 10:16:18 -07:00
templatetags zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
tests analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
tornado Notify offline users about edited stream messages. 2017-10-03 15:57:06 -07:00
views email_log: Don't require full coverage for error handling path. 2017-10-05 10:34:56 -07:00
webhooks webhooks: Remove use of get_user_profile_by_email. 2017-10-02 15:28:44 -07:00
worker Retry email failures in missed-message emails queue. 2017-10-03 10:35:07 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Remove the rest of print_function. 2017-09-27 18:06:47 -07:00
context_processors.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
decorator.py decorator: Improve wrong-subdomain logging output. 2017-10-02 13:31:20 -07:00
filters.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
forms.py forms: Extract check_subdomain_available. 2017-10-03 17:44:46 -07:00
logging_handlers.py docs: Add more comprehensive documentation on error reporting. 2017-09-27 19:47:08 -07:00
middleware.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
models.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
signals.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00