I recently upgraded from Webform 3.11 when upgrading to Drupal 6.25 and for some reason, the date field on a webform will only accept Dec 31 1969. If you enter a date before or after you receive a validation error of "The entered date must be Dec 31 1969 or earlier." If year is not a textfield, the only year available to select is 1969, regardless of the set range.
Has anyone else had this problem? I'm looking at the code, but if someone else has an idea of what's going on, it would be very helpful.
Comments
Comment #1
quicksketchDid you run update.php after upgrading? What are the values you have set for "Minimum date" and "Maximum date" on the date component? My guess is that whatever date is being used for one of those isn't a valid date, so it's not parsing correctly and resulting in a value of 0, which means Dec 31, 1969 (the date of the UNIX epoch)
Comment #2
weekbeforenextYes, I ran update.php after upgrading. The original start and end dates that worked before upgrading were:
Start Date: Dec 31 1900
End Date: 31 Dec 2050
The year was a textfield so the range is used more for validation than generating the select box. I tried +/- 2 years and it worked. Is there a limit to the range of years you can allow? Does it cause a break that defaults to only accept Dec 31 1969?
Thanks for your quick response.
Comment #3
quicksketchSounds like you're running into the same problem as #1409250: Start dates before 1970 cause validation errors. If you can join in the conversation over there and copy/paste your description of your range, that will help keep the conversation in one place.
Comment #4
weekbeforenextSounds good. Thanks for your help.
Comment #5
quicksketchThanks, I appreciate it. Keeping things in one place makes finding and updating issues easier.
Marking duplicate of #1409250: Start dates before 1970 cause validation errors.
Comment #5.0
quicksketchI also upgraded Webform from 3.11 to 3.16.