Bug : date format malfunctionned
This commit is contained in:
parent
4e2ec0463a
commit
3ed1e5cc2e
1 changed files with 2 additions and 2 deletions
|
|
@ -348,7 +348,7 @@ function format_date(p_object)
|
|||
p_object.value=p_object.value.replace(/\.\./g,'.');
|
||||
var tmp_value = p_object.value;
|
||||
a_split=tmp_value.split('.');
|
||||
if (a_split[2] && a_split[2].match(/[0-9]{2}/)) {
|
||||
if (a_split[2] && a_split[2].match(/[0-9]{2}/) && a_split[2].length==2) {
|
||||
p_object.value=a_split[0]+"."+a_split[1]+"."+"20"+a_split[2];
|
||||
}
|
||||
}
|
||||
|
|
@ -4106,4 +4106,4 @@ function reconnect(){
|
|||
div.innerHTML=req.responseText;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue