constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 7da91afd280e44ee593a52f3d30e28de447d2c3e
parent 39e6dd7d19bfc0298164f2aaf3ea62aa39155858
Author: Dan Callaghan <djc@djc.id.au>
Date:   Tue,  2 Sep 2008 21:33:27 +1000

write Date header to comments, timestamps are just too fragile (TODO use this in blog.py)

Diffstat:
Mtools/export_wp.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tools/export_wp.py b/tools/export_wp.py
@@ -82,6 +82,7 @@ def export(options):
             f = open(filename, 'w')
             if author:
                 f.write('From: %s\n' % author)
+            f.write('Date: %s\n' % date.strftime('%Y-%m-%d %H:%M:%S'))
             if email:
                 f.write('Author-Email: %s\n' % email)
             if url: