We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that the DST "change" property it's not rightly handled in the southern hemisphere.
For example, if you set as date 2017-10-09 12:00 UTC and go to America/Sao_Paulo timezone, hour() method should return 09:00 because (ref):
2017-10-09 12:00 UTC
hour()
09:00
Coherently, if you change date to 2017-10-16 it should return as 10:00.
2017-10-16
10:00
At this line the dst.change is constantly set to -60, but in the case above it should be +60.
dst.change
-60
+60
Indeed, the timezone().offsets property returns {base: -240, dst: -180} instead of {base: -180, dst: -120}
timezone().offsets
{base: -240, dst: -180}
{base: -180, dst: -120}
Same happens with America/Campo_Grande and America/Cuiaba.
I can't understand if this pattern (inverse of current dst.change) could be applied to every timezone in the southern hemisphere.
Take a look to this repl
The text was updated successfully, but these errors were encountered:
oh hey! duh! you're absolutely right. man, thank you Stefano. I should've caught this. Will fix it pronto. thanks!
Sorry, something went wrong.
You're welcome.
Please remember that I'm not 100% sure the pattern could be applied to every southern hemisphere timezone. Should be done further investigations
hey, have been busy. haven't forgot about this. Hope to get it at the end of the week.
hey! i got this in v2.1.1.
v2.1.1
you can see it here matching up with what it oughta be:
relevant tests thanks!
No branches or pull requests
It seems that the DST "change" property it's not rightly handled in the southern hemisphere.
For example, if you set as date
2017-10-09 12:00 UTC
and go to America/Sao_Paulo timezone,hour()
method should return09:00
because (ref):Coherently, if you change date to
2017-10-16
it should return as10:00
.At this line the
dst.change
is constantly set to-60
, but in the case above it should be+60
.Indeed, the
timezone().offsets
property returns{base: -240, dst: -180}
instead of{base: -180, dst: -120}
Same happens with America/Campo_Grande and America/Cuiaba.
I can't understand if this pattern (inverse of current
dst.change
) could be applied to every timezone in the southern hemisphere.Take a look to this repl
The text was updated successfully, but these errors were encountered: