- Solved
Date.prototype.toJSON() and Date.prototype.toISOString() discrepancy
console.log(new Date().toJSON()); console.log(new Date().toISOString()); // Actual output: // 2023-05-27T04:21:13.004Z // 2023-05-27T06:21:13.005Z // Expected output: /… (read more)
console.log(new Date().toJSON()); console.log(new Date().toISOString());
// Actual output: // 2023-05-27T04:21:13.004Z // 2023-05-27T06:21:13.005Z
// Expected output: // 2023-05-27T06:21:13.004Z // 2023-05-27T06:21:13.005Z
This happens only on Firefox and Firefox Developer Edition on one of my PCs and not the other. Firefox is version 113.0.2 (64-bit) and DE is 114.0b9 (64-bit)
Anyone experienced this before?