diff --git a/ttbp/atom.py b/ttbp/atom.py index 94d5cfe..879a132 100644 --- a/ttbp/atom.py +++ b/ttbp/atom.py @@ -66,9 +66,7 @@ def publish_atom(entry_filenames, settings): fe.author(name=config.USER) fe.content(html, type="html") try: # crashing because of an invalid date would be sad - year, month, day = [int(x) for x in date] - dt = datetime.datetime(year, month, day) - fe.updated(dt) + fe.updated("-".join(date)+"T00:00:00Z") except ValueError: pass outfile = os.path.join(config.WWW, 'atom.xml')