Fix possible javascript error in parseISO8601() (#5175)
This commit is contained in:
parent
90ad98cda7
commit
95b98257b1
1 changed files with 5 additions and 0 deletions
|
@ -123,6 +123,11 @@ function rcube_libcalendaring(settings)
|
|||
*/
|
||||
this.parseISO8601 = function(s)
|
||||
{
|
||||
// already a Date object?
|
||||
if (s && s.getMonth) {
|
||||
return s;
|
||||
}
|
||||
|
||||
// force d to be on check's YMD, for daylight savings purposes
|
||||
var fixDate = function(d, check) {
|
||||
if (+d) { // prevent infinite looping on invalid dates
|
||||
|
|
Loading…
Add table
Reference in a new issue