I'm trying to parse a twitter feed in django, and I'm having a strange problem converting the published time:
I've got the time from the feed into a full 9-tuple correctly:
>> print tweet_time
time.struct_time(tm_year=2009, tm_mon=6, tm_mday=17, tm_hour=14, tm_min=35, tm_sec=28, tm_wday=2, tm_yday=168, tm_isdst=0)
But when I call this:
tweet_time = datetime.fromtimestamp(time.mktime(tweet_time))
I end up with the a time 1 hour ahead:
>> print tweet_time
2009-06-17 15:35:28
What am I missing here?