The following code needed to be changed in the function date_text_input_value in date_api_elements.inc:
-$value = date_limit_value($date, $granularity);
+$value = date_limit_value($value, $granularity);
The following code needed to be changed in the function date_text_input_value in date_api_elements.inc:
-$value = date_limit_value($date, $granularity);
+$value = date_limit_value($value, $granularity);
Comments
Comment #1
Edlund commentedReported in #419402: Coding error in date_api_elements.inc, date_text_input_value() and #417032: Validation always fails on text fields date as well. Posting here for cross reference.
Comment #2
Edlund commentedAccording to the comment in #417032: Validation always fails on text fields date this has not been fixed, so changing the status of this to a duplicate of the former issue.