summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-05-23 17:24:36 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-05-23 17:24:36 -0600
commite7e56c88450544360756369e3123f611fd2d9a63 (patch)
tree58c81a6736629d9a4cfa8866c877176884ed54c0
parent6d27f928a11e55e3e3a84d8ad7240f0f2d04f921 (diff)
fix timezone
-rw-r--r--ChangeLog1
-rw-r--r--src/pyssg/rss.py2
-rw-r--r--src/pyssg/template.py6
3 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d741ff..e8581a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
CHANGES
=======
+* fix missing ref to obj
* fix bad method call
* ... literally 3 commits to fix a missing obj
* ACTUALLY add missing config obj lol
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',