New article bug appears when i try to change date

Found a bug? Tell us!!
Post Reply
iuliandr
Regular
Posts: 8
Joined: Wed Aug 09, 2006 3:21 pm

New article bug appears when i try to change date

Post by iuliandr »

Hello,

I have succesfully installed serendipity and its just the thing i was looking for. I have a small problem though. When I post a new entry, if i leave the day to be today's date, everything is just fine. If i want to create a new entry with a date in the future (to be posted lets say 30 days later than the posting date), it all goes berserk. After saving the new entry, i get a random date (random day, random month, random year) and not the date i was saving it as. Is there a way to show the date i want? To be more explicit:

Today, august, 09, 2006 i am creating a new entry with date being august, 30, 2006. After saving, the new entry has the date.. for example may, 26, 2027 :shock:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: New article bug appears when i try to change date

Post by garvinhicking »

Hi!

I suppose you are simply not entering a valid date for the future.

What exactly do you enter in the date input field?

Best 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/
iuliandr
Regular
Posts: 8
Joined: Wed Aug 09, 2006 3:21 pm

Post by iuliandr »

by default when i create new entry, i get the date of today as being this format: 09-08-2006 (day-month-year) so when i modify any field its screwed up
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What EXACTLY do you enter in the date input field? :-)
# 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/
iuliandr
Regular
Posts: 8
Joined: Wed Aug 09, 2006 3:21 pm

Post by iuliandr »

garvinhicking wrote:What EXACTLY do you enter in the date input field? :-)
so i want to make the post date 30-08-2006 or 30-09-2006 and it screws up. Nothing wrong with those dates, isnt it?
Shanga
Posts: 2
Joined: Thu Aug 10, 2006 10:52 am

I can confirm

Post by Shanga »

ON version 1.0, if you try to edit date and change ANYTHING in that field (hour, minute, anything), once you press SAVE the blog generates a very wierd random date, usually 30 years in the future or so... 2035 or whatever...

Bug occurs on editing old posts and on new ones too. (27-01-2015 11:52 was the latest lottery draw i got from that field). I disabled almost every date related plugin and wont fix it.

Any ideas?

I need that field to re-order entries on frontpage... unless you can suggest a better way.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi iuliandr!

If you enter "30-08-2006" then you are not using the right format. You would need to enter "2006-08-30 12:00" instead, for example.

Shanga, the same applies to you. What did you exactly enter?

[Maybe this problem is language specific. I tested this with version 1.0 using english and german, and in both versions a date like "2006-09-01 11:11" works perfectly fine]

Regerads,
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/
Shanga
Posts: 2
Joined: Thu Aug 10, 2006 10:52 am

Post by Shanga »

Correct... Bug doesn't occur on English version... only on Romanian one, who has a different kind of date display...

Well i guess I'll keep admin in English...no problem...Thanks for help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, then it might be that the translator of the bulgarian file made a mistake and changed the Date-Format that is required to be ISO-specific into a bulgarian timestamp.

I'll fix this in the new versions; you can edit your lang/serendipity_lang_ro.php and lang/UTF-8/serendipity_lang_ro.php files and replace the DATE_FORMAT_2 constant from "d-m-Y H:i" to "Y-m-d H:i"

Best 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/
Post Reply