Strange date after editing POST

Found a bug? Tell us!!
Post Reply
kemo

Strange date after editing POST

Post by kemo »

Hello

I am using version 0.8 beta 2.
When editing an entry, change its date and push the save button, there is very strange date instead.
For example when there is
08-03-2005 00:00
and I want to change it to
07-01-2005 00:00
the date displayed is
27-06-2012 00:00

When I delete the date completely the default today midnight date is inserted automatically there.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Strange date after editing POST

Post by garvinhicking »

Which language are you using?

The date on the edit screen should ALWAYS be displayed like this: 2005-03-08 15:10 (YYYY-MM-DD HH:MM), and that's how you should change it into. If you get a different display, there seems to be a bug which I'd like to fix :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kemo

Post by kemo »

I am using czech language version, both ISO-9952 and windows-1250 behaves the same way
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, there seems to be an error in your language file. The translator posted a wrong date format. :-(

I fixed this for the upcoming beta3 release. You can edit your language file (lang/serendipity_lang_cz.inc.php). This line:

Code: Select all

@define('DATE_FORMAT_2', 'd-m-Y H:i');
needs to be changed to

Code: Select all

@define('DATE_FORMAT_2', 'Y-m-d H:i');
Thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply