-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fractional Timezone Support #61
Comments
hey Josh, no thank you, this is a great bug let s=spacetime.now().goto('Asia/Calcutta')
console.log( s.format('iso'))
//2018-08-29T19:46:37.251-5.5:30 will fix it this week! |
Great, thanks for the quick reply! Are points number 1 & 2 above also valid? |
oh yeah, I think they're the same thing. It would be good to have a second pair of eyes on this. It seems weird, but it was intentional, if I remember, to reverse the offset in the ISO format. |
@spencermountain I can clarify |
ah, yeah. you two are right. Here's moment/luxor damn, how did I get this backwards. gonna give it half an hour. let's see. |
bah - here it is - https://askubuntu.com/questions/519550/why-is-the-8-timezone-called-gmt-8-in-the-filesystem yeah, we're mapping iso |
okay, it's out 4.4.0, can you guys check it? |
@spencermountain I will take a look over the coming day or so. Thanks for the quickfix! |
@spencermountain Sorry for going dark on this, just got back from a vacation. Thanks for resolving! |
It looks like Spacetime has a bit of trouble with fractional timezones, and gets a bit confused with reading in timezones that are ahead / behind GMT. Example:
Outputs the following:
Issues:
"2018-08-28T08:00:00.758-04:00"
, not"2018-08-28T08:00:00.758+04:00"
I'm willing to chalk some of this up to my inexperience with the lib / confusion with timezones.
The text was updated successfully, but these errors were encountered: