Fixed stuff
This commit is contained in:
parent
d325942185
commit
fa5ae1d917
|
@ -8,7 +8,7 @@
|
||||||
<email>baruchel@sdf.org</email>
|
<email>baruchel@sdf.org</email>
|
||||||
</author>
|
</author>
|
||||||
<rights>CC BY-SA 4.0</rights>
|
<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/src/blog.rst" />
|
||||||
<link href="https://git.sdf.org/baruchel/feeds/raw/branch/master/atom/blog.xml" rel="self" />
|
<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>
|
<generator uri="https://git.sdf.org/baruchel/feeds/src/branch/master/rst2atom.py">rst2atom</generator>
|
||||||
|
|
|
@ -60,7 +60,7 @@ def find_date(d):
|
||||||
for k in c.extract().split(" "):
|
for k in c.extract().split(" "):
|
||||||
try:
|
try:
|
||||||
t = dateutil.parser.parse(k)
|
t = dateutil.parser.parse(k)
|
||||||
return t.isoformat(timespec='seconds') + "Z"
|
return t.isoformat() + "Z"
|
||||||
except dateutil.parser.ParserError:
|
except dateutil.parser.ParserError:
|
||||||
pass
|
pass
|
||||||
raise dateutil.parser.ParserError
|
raise dateutil.parser.ParserError
|
||||||
|
@ -118,7 +118,7 @@ print("""<?xml version="1.0" encoding="utf-8"?>
|
||||||
docinfos["Author:"],
|
docinfos["Author:"],
|
||||||
docinfos["Contact:"],
|
docinfos["Contact:"],
|
||||||
meta["copyright"],
|
meta["copyright"],
|
||||||
datetime.datetime.now(datetime.timezone.utc).isoformat(timespec='seconds') + "Z",
|
datetime.datetime.now(datetime.timezone.utc).isoformat() + "Z",
|
||||||
meta["original-source"],
|
meta["original-source"],
|
||||||
meta["syndication-source"],
|
meta["syndication-source"],
|
||||||
generator_uri, generator_name
|
generator_uri, generator_name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user