Skip to content

Commit

Permalink
Actually store replies with UTC timezone, not a few hours off. Bug 61…
Browse files Browse the repository at this point in the history
…7785.
  • Loading branch information
Fred Wenzel committed Dec 9, 2010
1 parent 854f009 commit 44737bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/customercare/views.py
@@ -1,8 +1,8 @@
import calendar
from datetime import datetime
from email.utils import parsedate, formatdate
import json
import logging
import time

from django.conf import settings
from django.core.cache import cache
Expand Down Expand Up @@ -157,7 +157,7 @@ def twitter_post(request):
raw_tweet_data = {
'id': status['id'],
'text': status['text'],
'created_at': formatdate(time.mktime(
'created_at': formatdate(calendar.timegm(
status['created_at'].timetuple())),
'iso_language_code': author['lang'],
'from_user_id': author['id'],
Expand Down

0 comments on commit 44737bd

Please sign in to comment.