summaryrefslogtreecommitdiffstats
path: root/kittystore/storm/store.py
diff options
context:
space:
mode:
Diffstat (limited to 'kittystore/storm/store.py')
-rw-r--r--kittystore/storm/store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittystore/storm/store.py b/kittystore/storm/store.py
index b4e0812..4afd463 100644
--- a/kittystore/storm/store.py
+++ b/kittystore/storm/store.py
@@ -121,10 +121,10 @@ class StormStore(object):
if msg_date is None:
# Absent or unparseable date
msg_date = datetime.datetime.now()
+ utcoffset = msg_date.utcoffset()
if msg_date.tzinfo is not None:
msg_date = msg_date.astimezone(tzutc()).replace(tzinfo=None)
email.date = msg_date
- utcoffset = msg_date.utcoffset()
if utcoffset is None:
email.timezone = 0
else: