From fb7d34f69a0e47643c1e16c9e3d72dbc74b4bc4d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 16 Oct 2019 01:21:01 +0200 Subject: 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. --- core/configuration-example.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/configuration-example.php') 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]'); -- cgit v1.2.3