Commit 7be8812f authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1765422 by kalabro: Added Date widget format ignored in clientside validation.

parent 8b78d1f0
......@@ -1167,6 +1167,15 @@
var year = parseInt(parts[param.yearpos], 10);
var date = new Date();
var result = true;
if (day.toString().length !== parts[param.daypos].length){
result = false;
}
if (month.toString().length !== parts[param.monthpos].length){
result = false;
}
if (year.toString().length !== parts[param.yearpos].length){
result = false;
}
if (param.yearpos !== false){
expectedpartscount++;
date.setFullYear(year);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment