chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e64d03
)
site: make the locale work on Windows as well.
author
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 21 Dec 2017 17:04:33 +0000
(18:04 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 21 Dec 2017 17:04:33 +0000
(18:04 +0100)
site/pelicanconf.py
patch
|
blob
|
history
diff --git
a/site/pelicanconf.py
b/site/pelicanconf.py
index 17052e01c44976a7fae2a02af3fc705d97ba3b2f..4bdd4e6cadef7e6f2da0c2f747394597621b7948 100644
(file)
--- a/
site/pelicanconf.py
+++ b/
site/pelicanconf.py
@@
-39,7
+39,12
@@
PAGE_PATHS = ['']
TIMEZONE = 'Europe/Prague'
DEFAULT_LANG = 'en'
-DATE_FORMATS = {'en': ('en_US.UTF-8', '%b %d, %Y')}
+
+import platform
+if platform.system() == 'Windows':
+ DATE_FORMATS = {'en': ('usa', '%b %d, %Y')}
+else:
+ DATE_FORMATS = {'en': ('en_US.UTF-8', '%b %d, %Y')}
# Feed generation is usually not desired when developing
FEED_ATOM = None