Skip to content

Node inside node-12-base container has wrong timezone #50

Description

@ijager

I am in the CET timezone, which means that new Date().getTimezoneOffset() should return -60 at the moment. However it returns 0. As a result, all timestamps saved as UTC in my meteor app are wrong.

Is there some breaking change I have missed? Is there a way to configure the timezone for node or meteor inside the node-12-base docker container?

~$ date
Thu Feb 20 16:10:00 CET 2020
~$ docker exec -it meteor bash
root@ meteor:/# date
Thu Feb 20 16:10:09 CET 2020
root@ meteor:/# node
Welcome to Node.js v12.14.0.
Type ".help" for more information.
> t = new Date()
2020-02-20T15:10:23.155Z
> t.getTimezoneOffset()
0

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