Download & Extend

edit node results in wrong date

Project:Date
Version:6.x-2.3
Component:Date Popup
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

i have a node with a cck date field. When I edit the node, without touching the date field, the original date will change.

so, create a node with a date, click save, confirm the chosen date.
Then click edit > then save > the date has changed.

I am using the popup.

Comments

#1

Priority:critical» normal

I have just conducted a test with only cck and date installed, and it seems the bug is gone. Perhaps there is a conflict with a module, I will add modules to see where it goes wrong.

## Update

Well, after a LONG time i finally figured out what is wrong. The cck field had a format that didnt play well with the date popup (i think), I changed it to 04/09/2009 21:00
and the bug didnt occur any more...

#2

I have a similar situation and had to disable the date popup.

I'll have a look at the format as well....

#3

Yes, the setting for the format is the problem here, resetting it to '2009-09-10 19:11:11' fixes the default value upon edit....

#4

Worked for me too. thanks guys.

#5

The problem emerges when you choose a date string for the INPUT value, that is bound to change due to translations. E.g. if you choose an input string that contains the month name. Editing the node will give you the former value in the wrong language (e.g. Octobre instead of Oktober), which leads to the field not accepting the input and processing a default (or wrong) value.

#6

So, how can I determine what format should I use? I tried the format advised by dagomar (04/09/2009 21:00), but it not works for me.
This bug is critical, because date fields not saved. If I set the date to any date and time value (using the popup calendar), and save the node, the node loses the data value and stays as empty.

#7

That is a different error then, delykj. This issue is about loosing the data when editing.

#8

That is a different error then, delykj. This issue is about loosing the data when editing.

OK, I will post a new issue.

#9

+1

#10

Anything new about this issue? I still have it.

#11

See #5 for a way to fix it. Just change the INPUT date format.

#12

+1 worked for me. Changed the input format @ nodetype-field.

Where is the INPUT date format? Is that the field located when you edit a nodetype?

#14

Yes, it's in the field configuration, in other words, it's under /admin/content/node-type/{NodeTypeName}/fields/{FieldName}
There should be a dropdown list for input format.

#15

i don't see how #5 is a solution. The field is a date field. Are you suggesting to change the intput type to a string?

#16

No. If you just try it out, you will see that there is an "input format" drop down box which contains different formats for date values that can be entered. E.g. "1/24/2012" or "2012, January 24". The problem just appeared when this string contained translatable words (such as "January").

nobody click here