I’ve just published a new blog post: https://www.chornonoh-vova.com/blog/js-dates-bug

In this post, I describe how I ran into a subtle JavaScript bug recently that I think is worth sharing.

This line of code worked perfectly… until it didn’t:

new Date("2026-01-06 09:00 AM")

Chrome parses it just fine.
Safari returns Invalid Date.

Read the article to find out how I fixed it!

Keep Reading

No posts found