When I enter a value in the Date field, it doesn't store the value I entered but instead it stores the current date and time. It used to work before, even with 5.x-2.3. The only thing that has changed recently is that I updated jQuery Update (from 1.0 to 2.0).
I also tried to use the Date Popup, but that doesn't work for me (see http://drupal.org/node/259681). I don't know whether enabling and subsequently disabling the date popup is the source of the problem. I'm note sure whether or not I created new nodes with a date field after having tried that (I thought I did but know I'm not so sure anymore).
If you need any information I'll be happy to supply it. I hope you can help solve this as it really is an annoying problem.
Comments
Comment #1
pvanderspek commentedOk, I don't know what happened. Maybe it was just a caching problem in my browser. In any case, everything works fine again.
Comment #2
pvanderspek commentedThe problem seems to be a coming and going. Currently it's back again and I have no clue as to what might be causing it. It stopped for a couple of days, but now it's back (was it actually gone to being with??) and I'm 100% sure I didn't change anything to Drupal or my browser.
Does anyone have a suggestion how to debug this problem?
Comment #3
pvanderspek commentedOk, now I know I don't understand the problem. I've changed the input type from a simple text field to a set of selection boxes and now I can enter dates just fine. How can that be?!
Comment #4
karens commentedIf it seems broken only when using a text field, it may be a bug in the text field widget. I'll mark it that way. Any information you can provide about exactly how you have your field set up when it's broken would help to debug it.
Comment #5
karens commentedComment #6
pvanderspek commentedI hope the information below helps.
Widget: Text Field with custom input format
Default value: Now
Customize default value: default values
Input format: yyyy-mm-dd hh:mm:ss
Custom input format: d-m-Y H.i
Years back and forward: -3:+3
Time increment: 1
Data settings: field is set required
Multiple: never
To date: never
Granularity: year, month, date, hour, minute
Date display: dd/mm/yyyy hh:mm
Additional display settings: default values
Time zone: site's time zone
Comment #7
fmitchell commentedI am also seeing this issue on -dev D6. I changed it to a select drop down and it works fine. The date was storing fine, but the time would not store at all.
Comment #8
karens commentedThis is partly because of #303951: Allow both 9/4/2008 and 09/04/2008, which I just fixed. In the process of fixing that I see that when the date is invalid it is defaulting back to today's date instead of flagging an error, so I need to fix that next.
Comment #9
karens commentedThe problem is coming from the code added to use strtotime to try to guess a valid date value from whatever is input (#265076: Accept text input that omits hour & minute, even if the format expects it). In way too many cases it ends up silently failing and converting the date to 'now'.
I'm going to revert that change and reopen that issue and try to find another way to do that.
Comment #11
dakku commentedany update on this? I am stuck with the same issue!
Comment #12
dakku commentedreinstalled the latest version and the issue is fixed. thanks