android
android copied to clipboard
Local timezone not taken into account in API Level 24
Environment
- CLI: 5.1.0
- Cross-platform modules: 5.1.0
- Android Runtime: 4.2.0 (and higher)
Describe the bug
The local timezone is not properly taken into account when creating dates (GMT is always assumed).
To Reproduce
- Create a x86 Android emulator using API Level 24
- Set to some custom timezone in the device Settings.
Expected behavior
The timezone is properly taken into account when using console.log(new Date());
:
Thu Jan 24 2019 09:40:47 GMT+0200 (EET)
Actual Behavior
The date is assumed in GMT:
Thu Jan 24 2019 07:40:47 GMT+0000 (GMT)