Wrong display of date formats

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
OSWorX
Posts: 24
Joined: Sat Jul 06, 2013 9:43 am

Wrong display of date formats

Post 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
OSWorX - OpenSource Development :: OpenCart Developer
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Wrong display of date formats

Post by Klemen »

Thanks, will look into it more closely for the next release.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply