edit node results in wrong date
dagomar - August 30, 2009 - 14:54
| Project: | Date |
| Version: | 6.x-2.3 |
| Component: | Date Popup |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
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
OK, I will post a new issue.
#9
+1