Setting a default-time by argument of the directive will lead to an invalid date exception in 2.6.1 line 367 on parsing the date with the added default time:
new Date('2001/01/01 ' + defaultTime)
will output to
Mon Jan 01 2001 12:00:00 GMT+0100 (CET)
If the problem persist on other parts of the code as well, there is a more general approach to use .replace(/-/g, "/"). But I haven't found any other occurrence yet.
There is a difference in date parsing between Safari and other browsers.
https://stackoverflow.com/questions/6427204/date-parsing-in-javascript-is-different-between-safari-and-chrome#6427318
Setting a default-time by argument of the directive will lead to an invalid date exception in 2.6.1 line 367 on parsing the date with the added default time:
var t = new Date('2001-01-01 ' + defaultTime);
However if you see https://stackoverflow.com/questions/4310953/invalid-date-in-safari there is a simple fix for it:
new Date('2001/01/01 ' + defaultTime)
will output toMon Jan 01 2001 12:00:00 GMT+0100 (CET)
If the problem persist on other parts of the code as well, there is a more general approach to use
.replace(/-/g, "/")
. But I haven't found any other occurrence yet.