android icon indicating copy to clipboard operation
android copied to clipboard

Local timezone not taken into account in API Level 24

Open darind opened this issue 6 years ago • 0 comments

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

  1. Create a x86 Android emulator using API Level 24
  2. 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)

darind avatar Jan 24 '19 07:01 darind