Hum, Effectively I thinks there is a bug here.
Try to add the following code before adding the google script.
Date.__cyril_parse = Date.parse;
Date.parse = function(s){
try {
return Date.__cyril_parse(s);
} catch (e){
var d = new Date(s);
if (s) {
return s;
} else {
throw e;
}
}
}
I think google use the parse functions but internally Atlas overrides this methods and use theses templates.
- formats {...} Object
[0] "MMMM dd" String
[1] "yyyy MMMM" String
[2] "MM/dd/yyyy" String
[3] "HH:mm" String
[4] "dddd, dd MMMM yyyy" String
[5] "HH:mm:ss" String
[6] "dddd, dd MMMM yyyy HH:mm:ss" String
[7] "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" String
[8] "yyyy'-'MM'-'dd'T'HH':'mm':'ss" String
[9] "yyyy'-'MM'-'dd HH':'mm':'ss'Z'" String
My code snippets save the Atlas Date.parse methods override the Date.parse methods, call the saved Date.parse methods in a try catch block and if there is an error call the constructor of the Date object. It works for your sample but I don't know if google overrides this methods to.