Strange values in CMS

Hi guys,
i have started to get strange values with my 1.7.8 Content Manager.
My displays informs “Last accessed” as following: 20.01.17171717 0909.55
Any ideas?

What is your date format and do you have international dates enabled?
(both in CMS settings -> Regional tab)

Hi Peter,
thanks for the response.
Yes,
I have my own timezone there and also this: d.m.yyyy HH.NN
I also have international dates checkbox checked.

Is there anything that i am missing?

Well it does display exactly what you set

d = 20 (Day of the month, 2 digits with leading zeros)
m = 01 (Numeric representation of a month, with leading zeros)
y = 17 (A two digit representation of a year)
H = 09 (24-hour format of an hour with leading zeros)
N = 5 (numeric representation of the day of the week )

Please have a look here:
http://php.net/manual/en/function.date.php

Hi Peter,
i am sorry, not sure if i understand,
What is the correct way?
this: d.m.y H:NN

20.01.17 10:55

Not sure if you want N (it’s 1-7 for Mon - Sun), perhaps you want minutes there instead? ie for example
d.m.y H:i

20.01.17 10:28

the default format is
Y-m-d H:i:s

2017-01-20 10:28:38

Thanks Peter! :slight_smile:
This answers my question,
d.m.y H:i:s
I have just changed the order of the date and separated by using a dot.

Hi Peter,
no matter what i do i still get very strange values under Network/Displays/Last accessed time.
“1.25.2017 16:” that is supposed to be 01.02.2017 16:33
I have set this “d.m.y H:i” in CMS
CMS is running on linux i wonder if there is something that i am missing?

Thanks

It’s because of ‘Show international dates?’ that you have enabled.

Unless you really need it enabled, ie you use 5 days… weather template with different than English language, you will want to disable that setting.

If you want to keep it, then you’d need to change the format to
YYYY-MM-dd HH:mm:ss then in most places, dates should look fine.

In 1.8 series that will not be a problem anymore.

1 Like

Okay :slight_smile:
I will take that showing international dates off.
It works fine after taking it off.

Thanks!