Skip to content

Commit

Permalink
mygpo: Send timestamp as UTC to gpodder.net (bug 1036)
Browse files Browse the repository at this point in the history
Although time.time() returns UTC times,datetime.datetime.fromtimestamp()
then translates that to local time. *utc*fromtimestamp() should be used.
  • Loading branch information
dovf authored and thp committed Jun 13, 2011
1 parent 49f29b1 commit 0069f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/my.py
Expand Up @@ -408,7 +408,7 @@ def synchronize_episodes(self, actions):
log('Starting episode status sync.', sender=self)

def convert_to_api(action):
dt = datetime.datetime.fromtimestamp(action.timestamp)
dt = datetime.datetime.utcfromtimestamp(action.timestamp)
since = mygpoutil.datetime_to_iso8601(dt)
return api.EpisodeAction(action.podcast_url, \
action.episode_url, action.action, \
Expand Down

0 comments on commit 0069f1a

Please sign in to comment.