Skip to content

format("z") seems to have issues with timezones #36

@rejhgadellaa

Description

@rejhgadellaa

In Chrome's console:

new Date(1534545439635);
Sat Aug 18 2018 00:37:19 GMT+0200 (Central European Summer Time)

new Date(1534545439635).format("z");
"229"

The same day but later:

new Date(1534588427903)
Sat Aug 18 2018 12:33:47 GMT+0200 (Central European Summer Time)

new Date(1534588427903).format("z");
"230"

The timestamp at 00:37:19 returns "229" but the timestamp of the same day at 12:33:47 returns "230"

Note: Central European Summer Time is GMT +02:00 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions