Wrong display of date formats
Posted: Mon Sep 16, 2019 10:07 pm
As I thought, after playing a bit around with the date settings.
Every date in each language other than English is displayed wrong.
Instead of using date(..), you should use strftime(..) in combination with setlocale( LC_TIME, $locale ) where $locale is an array of the locale values (e.g. for German de_DE@euro,de_DE,de,ge,de-DE,de-de,german,de_DE.UTF-8)
Using the current date(..) function, a date will be displayed like this (Hesk is using German as language):
where it should be like this - using strftime(..):
Every date in each language other than English is displayed wrong.
Instead of using date(..), you should use strftime(..) in combination with setlocale( LC_TIME, $locale ) where $locale is an array of the locale values (e.g. for German de_DE@euro,de_DE,de,ge,de-DE,de-de,german,de_DE.UTF-8)
Using the current date(..) function, a date will be displayed like this (Hesk is using German as language):
Code: Select all
Wed May 2019 11:35:21
Code: Select all
Mittwoch 15. Mai 2019 11:35:21