From 3cf013401e16d5d6017f6a17bcd1365872dbf4e2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 17 Mar 2006 14:10:47 +0000 Subject: [PATCH] Switch locale back to C to generate englsih dates. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@37 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- reindex_blog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reindex_blog.py b/reindex_blog.py index 7471743..9d88601 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -394,6 +394,9 @@ namespace = { "posts": items, } +# For english dates +locale.setlocale(locale.LC_TIME, 'C') + atom_tmpl = str(atom_10(searchList=[namespace])) write_if_changed(os.path.join(blog_root, "atom_10.xml"), atom_tmpl) rss_tmpl = str(rss_20(searchList=[namespace])) -- 2.39.5