Closed (outdated)
Project:
Date
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2010 at 05:02 UTC
Updated:
6 Feb 2018 at 01:35 UTC
Jump to comment: Most recent
On node editing, i have a cck date field of type date (not datestamp) with granularity year.
I can save 1969 and 1971 to it but not 1970.
Checked for known issues but most are old and fixed.
I'm using date 6.x-2.6, php 5.2.9 and mysql 5.0.91.
Could manually enter 1970-00-00T00:00:00 in phpmyadmin but then drupal won't let me edit the node.
The error displayed is:
There are errors in Year:
* The From date is invalid.
* The To date is invalid.
Comments
Comment #1
Remon commentedComment #2
Remon commentedOps, I was intending to update another issue :S
Comment #3
inforeto commentedProblem continues, years before 1970 are fine, only 1970 don't validate.
Don't know if it is an issue with the module or something to check on php or mysql.
As far as i grep the string of the actual error only appears here:
date/date_elements.inc
function date_combo_validate
line 507
And this compares $from_date before and after date_timezone_set.
Using date 6.x-2.7 and php 5.3.6
Any ideas o pointers?
Thanks
Comment #4
fr34ck commentedI have the same issue but for year 1916!
I can save values 1915 and 1917, but the value 1916 give me an error:
* The From date is invalid.
* The To date is invalid.
Comment #5
damienmckennaWe're sorry but the D6 release of Date module is no longer being supported. You are encouraged to update to Drupal 7 or 8, or direct questions to Drupal Answers.