mirror of https://github.com/zulip/zulip.git
eb0f8bda09
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) |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
static | ||
tests | ||
__init__.py | ||
context_processors.py | ||
decorator.py | ||
exceptions.py | ||
filters.py | ||
finders.py | ||
forms.py | ||
handlers.py | ||
middleware.py | ||
models.py | ||
openid.py | ||
retention_policy.py | ||
static_header.txt | ||
storage.py | ||
tests.py | ||
tornado_callbacks.py | ||
tornadoviews.py | ||
views.py |