Hacker News new | ask | show | jobs
by bussyfumes 1596 days ago
I no longer have access to send you the exact dates, but it was along the lines of what you can see here: https://stackoverflow.com/questions/63464398/new-date-return...

I just tried it in my Safari and it seems to give you an "Invalid Date" which it doesn't in Chrome.

Not sure if it's a bug, maybe a design choice. Anyway, in my case I received dates from a backend and was supposed to visualize a chart with them and some supplementary data, so I had to parse them and at some point we learned that the chart was broken for users in Safari because they'd get "Invalid Date" after parsing.

1 comments

Dates are weird in JS/browsers so I wouldn't be at all surprised if some browser was strictly adhering to a standard, and the other browser... also strictly adhering to a standard, but a different one. Or both being lax. Or one of them being lax. Or...

Browsers are a mess, frankly :)