diff options
author | Thomas Lange <code@nerdmind.de> | 2019-10-16 01:21:01 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2019-10-16 01:21:01 +0200 |
commit | fb7d34f69a0e47643c1e16c9e3d72dbc74b4bc4d (patch) | |
tree | 5bdf061771bd66c6527b8522ab7c8de0d4c43a6f /core/configuration-example.php | |
parent | e3658b5cf4c70e0b7f910777d08a4cea19b163e4 (diff) | |
download | blog-fb7d34f69a0e47643c1e16c9e3d72dbc74b4bc4d.tar.gz blog-fb7d34f69a0e47643c1e16c9e3d72dbc74b4bc4d.tar.xz blog-fb7d34f69a0e47643c1e16c9e3d72dbc74b4bc4d.zip |
Use strftime() with locale support
This commit changes the parseDatetime() function to use strftime() with locale support to replace the day-and-month name related parts within the format string. The strftime() function uses the locale defined by the LC_TIME or LC_ALL environment variable which can be set with PHPs own setlocale() function within the configuration.php.
Diffstat (limited to 'core/configuration-example.php')
-rw-r--r-- | core/configuration-example.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/configuration-example.php b/core/configuration-example.php index 4378d46..f87117b 100644 --- a/core/configuration-example.php +++ b/core/configuration-example.php @@ -13,6 +13,8 @@ # # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# +# setlocale(LC_TIME, ['en_US.utf8', 'en_US']); + Application::set('CORE.LANGUAGE', 'en'); Application::set('BLOGMETA.NAME', 'My Techblog'); Application::set('BLOGMETA.DESC', '[a creative description]'); |