You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
At the moment we don't support any time zones, so there's no concept of local time right now. What you're seeing are dates based on UTC. Time zones are coming, but I switched to using UTC Date.prototype methods based on #52 and Norbert's comment in #19, which is why you're seeing the issue now.
I've just about finished working out all the kinks in the Sauce Labs test suite, so I'm hoping to get around to this very soon.
Thinking on this a bit more, I might revert to the old method of getting time components, unless the user specifies { timeZone: 'UTC' }. The main reason for this is that I'm still unsure how to tackle adding the IANA tz data for browsers, and I need a bit more time to mull it over and play around.
The downside is that we'll be following the "goofy rules" (as @NorbertLindenberg put it) for time zone handling the time being.
Running on Chrome (with native
Intl
support in CST), the following core formats the time ofJan 1, 2013 1:01:01 PM
correctly as1:01 PM
But, using
Intl.js
in both Firefox 26.0 and Safari 7.0.1 I get7:01 PM
Also affects
toLocaleString
The text was updated successfully, but these errors were encountered: