diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-05-23 17:24:36 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-05-23 17:24:36 -0600 |
commit | e7e56c88450544360756369e3123f611fd2d9a63 (patch) | |
tree | 58c81a6736629d9a4cfa8866c877176884ed54c0 /src | |
parent | 6d27f928a11e55e3e3a84d8ad7240f0f2d04f921 (diff) |
fix timezone
Diffstat (limited to 'src')
-rw-r--r-- | src/pyssg/rss.py | 2 | ||||
-rw-r--r-- | src/pyssg/template.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pyssg/rss.py b/src/pyssg/rss.py index ec661bb..2aa7fb0 100644 --- a/src/pyssg/rss.py +++ b/src/pyssg/rss.py @@ -7,7 +7,7 @@ from .configuration import Configuration VERSION = importlib.metadata.version('pyssg') -DFORMAT = '%a, %d %b %Y %H:%M:%S %Z' +DFORMAT = '%a, %d %b %Y %H:%M:%S GMT' class RSSBuilder: diff --git a/src/pyssg/template.py b/src/pyssg/template.py index a407475..d62c40f 100644 --- a/src/pyssg/template.py +++ b/src/pyssg/template.py @@ -115,7 +115,7 @@ class Template(HF): os.chdir('rss') self.__write_template('rss.xml', ['<?xml version="1.0" encoding="UTF-8" ?>\n', - '<rss version="2.0">\n', + '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">\n', ' <channel>\n', ' <title>$$TITLE</title>\n', ' <link>$$LINK</link>\n', @@ -123,8 +123,8 @@ class Template(HF): ' <description>SHORT DESCRIPTION.</description>\n', ' <language>en-us</language>\n', ' <copyright>COPYRIGHT NOTICE.</copyright>\n', - ' <managingEditor>EMAIL@EXAMPLE.ORG</managingEditor>\n', - ' <webMaster>EMAIL@EXAMPLE.ORG</webMaster>\n', + ' <managingEditor>EMAIL@EXAMPLE.ORG (NAME)</managingEditor>\n', + ' <webMaster>EMAIL@EXAMPLE.ORG (NAME)</webMaster>\n', ' <pubDate>$$CURRENTDATE</pubDate>\n', ' <lastBuildDate>$$CURRENTDATE</lastBuildDate>\n', ' <generator>$$PYSSGVERSION</generator>\n', |