]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Switch locale back to C to generate englsih dates.
authorOleg Broytman <phd@phdru.name>
Fri, 17 Mar 2006 14:10:47 +0000 (14:10 +0000)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Mar 2006 14:10:47 +0000 (14:10 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@37 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

reindex_blog.py

index 74717438d9e99d5629ae04266b10db48be40a595..9d88601f79379bc3a16ac84d0e530f9c41cd9acf 100755 (executable)
@@ -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]))