mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
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)
|
||
|---|---|---|
| .. | ||
| bugdown | ||
| __init__.py | ||
| actions.py | ||
| avatar.py | ||
| bulk_create.py | ||
| cache_helpers.py | ||
| cache.py | ||
| context_managers.py | ||
| create_user.py | ||
| debug.py | ||
| event_queue.py | ||
| html_diff.py | ||
| initial_password.py | ||
| logging_util.py | ||
| mention.py | ||
| minify.py | ||
| parallel.py | ||
| query.py | ||
| queue.py | ||
| rate_limiter.py | ||
| response.py | ||
| timeout.py | ||
| timestamp.py | ||
| tornado_ioloop_logging.py | ||
| unminify.py | ||
| upload.py | ||
| utils.py | ||