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

Edlund’s picture

Edlund’s picture

Status: Fixed » Closed (duplicate)

According 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.