-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
America/Sao_Paulo datetime behavior is wrong when debug mode is OFF using RN #126
Comments
Solve this using react-native-v8 |
Did this actually work for you? |
Nobody has touched this in a year @DanielZlotin will anyone be able to update the build to include the new brazil timezone support? |
Issue still seems to be present
and test results are
Moment is only library atm that can handle Brazil DLS changes due to not using JSC Intl |
1 task
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Our current president has decided to cancel DST in Brazil this year. This means that since November 4th the timezone is being returned incorrectly (UTC -2 instead of -3).
I tried to use some libs to solve this problem:
But I couldn't.
I also learned that React Native has 2 types of environments to run JS:
V8
from Chrome when Debug Mode is ON and device'sJavascriptCore
when Debug Mode is OFF.I've noticed that's influences directly in the timezone behavior, since when Debug Mode is ON, there's no problem with timezone at all using any of those libraries above.
I've also tried to solve this by installing
"jsc-android": "241213.x.x"
with all gradle config and stuff, but the timezone stills incorrect.I can't find a solution to make timezone works as expected.
React Native version:
Steps To Reproduce
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: