Page 1 of 1

Wrong display of date formats

Posted: Mon Sep 16, 2019 10:07 pm
by OSWorX
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):

Code: Select all

Wed May 2019 11:35:21
where it should be like this - using strftime(..):

Code: Select all

Mittwoch 15. Mai 2019 11:35:21

Re: Wrong display of date formats

Posted: Tue Sep 17, 2019 6:52 pm
by Klemen
Thanks, will look into it more closely for the next release.