There is an issue in clientside_validation.js @ line 1193

If today is "January, 30", the line:
var date = new Date();
Is in effect the same as:
var date = new Date(2013, 0, 30);
If we validate the date: "February, 15", consider this code:

// February is equal to 1 in javascript, so month = 1
date.setMonth(month); // we are doing date.setMonth(1);
// Date was "January, 30", we set it as "February, 30", but this makes the date "March, 2" !
if (month !== date.getMonth()) { // fails because: 1 !== 2
  result = false;
#1 day-in-month-overflow-1902840-1.diff478 bytesMiroslavBanov
Members fund testing for the Drupal project. Drupal Association Learn more


MiroslavBanov’s picture

Submitting my patch for issue

kpaxman’s picture

I confirm this fixes the issue for me.

attiks’s picture

Status: Needs review » Fixed

I somehow missed this, but this should be fixed in the mean time in the latest dev version, if not feel free to re-open.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Clarify some points. Nothing is changed - just a better explanation.