From f74ac0d517cf6f9d57c5b287ed7cb5482374e902 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 21 Dec 2017 18:04:33 +0100 Subject: [PATCH] site: make the locale work on Windows as well. --- site/pelicanconf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/pelicanconf.py b/site/pelicanconf.py index 17052e01..4bdd4e6c 100644 --- 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 -- 2.30.2