DEV Community

Bertold Kolics
Bertold Kolics

Posted on

1 2

A great resource for browser compatibility

The Mozilla Developer Network is a fantastic resource for finding out about browser compatibility issues especially when you are working with JavaScript.

I was reminded of this when I was trying to get Firefox 78 ESR (extended support release) to format time for me and I realized that it only supports the timeStyle option in version 79 or later.

So, for example, this snippet:

const date = new Date();
date.toLocaleTimeString('en', {timeStyle: 'short'});
Enter fullscreen mode Exit fullscreen mode

produces different results in Firefox 78 and in Firefox 83.

Firefox 78 result:

Firefox 83 result:

As you can see, Firefox 78 will display seconds, but the newer version will adhere to the short time style and not display that field.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay