Change date format for the sub directories as well.
authorDeryck Hodge <deryck@samba.org>
Fri, 3 Sep 2004 23:15:47 +0000 (23:15 +0000)
committerDeryck Hodge <deryck@samba.org>
Fri, 3 Sep 2004 23:15:47 +0000 (23:15 +0000)
Missed this in my last commit.

--deryck

git-svn-id: file:///home/svn/samba-web/trunk@312 44aeb9d7-1cd8-0310-b257-a505e0beeac2

scripts/updateNews.py

index faa4cedabf4825d3241eaf56845fea0801555da7..b9d5ed3635412c33e16787ee5dae3bd69cf2a058 100755 (executable)
@@ -100,7 +100,7 @@ def archive(dir, files):
         if file in not_news: continue
         f_lines = open(file, 'r').readlines()
         f_stats = os.stat(file)
-        f_date = time.strftime("%d %B %Y", time.localtime(f_stats[ST_MTIME]))
+        f_date = time.strftime("%B %d %Y", time.localtime(f_stats[ST_MTIME]))
         # group stories from same date under that one date
         if f_date in stories_by_date.keys():
             stories_by_date[f_date].append("".join(f_lines))