Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is an error with the date validation in your clientside_validation.js file. Line 1084 (v7.x-1.33), you have to change
var month = parseInt(parts[param.monthpos], 10);
by
var month = parseInt(parts[param.monthpos], 10);
if (month>0) month--;
or something similar.
In Javascript, the month value is between 0 an 11, not between 1 and 12.
Comment | File | Size | Author |
---|---|---|---|
#2 | error_with_date_validation-1743530-2.patch | 553 bytes | kalabro |
Comments
Comment #1
Jelle_SThanks for catching that! Fixed in latest dev
Comment #2
kalabroAn issue is not fixed because of incorrect comparison sign.
Try to input
01/00/2012
(will be valid) or01/12/2012
(will be invalid) to test.Patch attached.
Comment #3
Jelle_SSorry, my bad! fixed in latest dev