Fixed stuff

This commit is contained in:
Thomas Baruchel 2022-11-05 15:42:35 +01:00
parent d325942185
commit fa5ae1d917
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<email>baruchel@sdf.org</email>
</author>
<rights>CC BY-SA 4.0</rights>
<updated>2022-11-05T14:38:33+00:00Z</updated>
<updated>2022-11-05T14:42:25.792793+00:00Z</updated>
<link href="https://git.sdf.org/baruchel/feeds/raw/branch/master/src/blog.rst" />
<link href="https://git.sdf.org/baruchel/feeds/raw/branch/master/atom/blog.xml" rel="self" />
<generator uri="https://git.sdf.org/baruchel/feeds/src/branch/master/rst2atom.py">rst2atom</generator>

View File

@ -60,7 +60,7 @@ def find_date(d):
for k in c.extract().split(" "):
try:
t = dateutil.parser.parse(k)
return t.isoformat(timespec='seconds') + "Z"
return t.isoformat() + "Z"
except dateutil.parser.ParserError:
pass
raise dateutil.parser.ParserError
@ -118,7 +118,7 @@ print("""<?xml version="1.0" encoding="utf-8"?>
docinfos["Author:"],
docinfos["Contact:"],
meta["copyright"],
datetime.datetime.now(datetime.timezone.utc).isoformat(timespec='seconds') + "Z",
datetime.datetime.now(datetime.timezone.utc).isoformat() + "Z",
meta["original-source"],
meta["syndication-source"],
generator_uri, generator_name