Leaflet-WFST
Leaflet-WFST copied to clipboard
Date format from geoserver
Date, that returned from Geoserver, contains "Z" on end of string, "2015-10-15Z".
types: ['date', 'time', 'datetime'],
parse: function (input) {
return new Date(input);
}
In Chrome this work good, but in IE11-12, browser cant parse that (invalid date), need to remove "Z".
something like this
if (input[input.length-1] == "Z") {input = input.substring(0, input.length - 1)};
return new Date(input);
Dont sure, is this correct
msdn says that IE can parse this dates, but in examples its presents with time...