Skip to content

Commit

Permalink
Fixed problem on Atomfeed:
Browse files Browse the repository at this point in the history
Now the datetimes inputed by sdi has not be set local tzinfo refs Pylons/substanced#98
  • Loading branch information
hirokiky committed Apr 23, 2014
1 parent 430b6c2 commit 708ff5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/views/retail.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _add_updated_strings(updated, info):
y, mo, d, h, mi, s = updated.timetuple()[:6]
updated = datetime.datetime(
y, mo, d, h, mi, s, tzinfo=pytz.utc)
info['updated_atom'] = updated.astimezone(pytz.utc).isoformat()
info['updated_atom'] = pytz.utc.localize(updated).isoformat()
info['updated_rss'] = updated.strftime('%a, %d %b %Y %H:%M:%S %z')

blogentries = []
Expand Down

0 comments on commit 708ff5b

Please sign in to comment.