Skip to content

Local timezone not taken into account in API Level 24 #1255

Open
@darind

Description

@darind

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions