zulip/zephyr
Leo Franchi eb0f8bda09 Ensure the last_reminder datatetime is tz-aware
I don't fully understand the need for this, but I have seen some
tracebacks on app that complain:

File "/home/humbug/humbug-deployments/2013-07-11-19-28-10/zephyr/lib/actions.py", line 1289, in handle_missedmessage_emails
    timestamp - user_profile.last_reminder < waitperiod):
TypeError: can't subtract offset-naive and offset-aware datetimes

Since timestamp in this case comes from timestamp_to_datetime
that explicitly sets the tzinfo, we know it's tz-aware. The only
other possibility is that user_profile.last_reminder is **not**
tz-aware, though I am not sure why that would be the case.

(imported from commit 67e33f4510e91fa9de504f0c610515581312c98b)
2013-07-12 09:57:09 -04:00
..
fixtures Support JIRA workflow post-function web hooks 2013-05-24 21:23:56 -04:00
lib Ensure the last_reminder datatetime is tz-aware 2013-07-12 09:57:09 -04:00
management populate_db: Tweak the humbughq.com realm's default streams. 2013-07-09 14:35:02 -04:00
migrations [schema] Add PermissionsMixin to UserProfile 2013-07-08 17:07:55 -04:00
static A better chevron for message actions dropdown 2013-07-12 06:13:20 -07:00
tests Revert to old mark as unread on view behavior. 2013-07-11 14:01:26 -04:00
__init__.py Initial Django commit: basic account, zephyr stream, narrowing, etc. 2012-08-28 12:44:51 -04:00
context_processors.py [manual] Use ujson instead of simplejson. 2013-06-24 10:17:10 -04:00
decorator.py Block API usage by deactivated users. 2013-07-08 14:00:19 -04:00
exceptions.py Add a rate limiting system to our backend 2013-06-04 09:43:09 -04:00
filters.py Enable absolute imports. 2013-04-23 09:51:17 -07:00
finders.py Collect static files directly in the location that will be served 2013-06-12 17:46:38 -04:00
forms.py Remove unused imports 2013-06-27 16:22:39 -04:00
handlers.py Remove unused imports 2013-06-27 16:22:39 -04:00
middleware.py Fix buggy logging of database query time. 2013-06-28 15:57:28 -04:00
models.py Don't 500 when users try to make their name super long. 2013-07-09 17:43:47 -04:00
openid.py Enable absolute imports. 2013-04-23 09:51:17 -07:00
retention_policy.py Enable absolute imports. 2013-04-23 09:51:17 -07:00
static_header.txt Prepend the minified static file header using a custom Storage class 2013-06-12 17:46:38 -04:00
storage.py Create minified_assets.json in the deployment root 2013-06-24 15:55:04 -04:00
tests.py bugdown linkify: Improve handling of email addresses. 2013-07-11 15:00:10 -04:00
tornado_callbacks.py Actually test callbacks in GetUpdatesTest. 2013-07-02 10:50:02 -04:00
tornadoviews.py Remove unused imports 2013-06-27 16:22:39 -04:00
views.py Shorten private operator (private-message -> private). 2013-07-10 16:58:17 -04:00