1 2 3 4 5 6 7 8 9 10 11
const is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; export function parse_date(string) { if (is_firefox) { // Firefox cannot parse " UTC" string = string.slice(0, -4) + "Z"; console.log("DATE", string); } return new Date(string); }