You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
~$ dateThu Feb 20 16:10:00 CET 2020~$ docker exec -it meteor bashroot@ meteor:/# dateThu Feb 20 16:10:09 CET 2020root@ meteor:/# nodeWelcome to Node.js v12.14.0.Type ".help" for more information.
> t = new Date()2020-02-20T15:10:23.155Z
> t.getTimezoneOffset()0
The text was updated successfully, but these errors were encountered:
volumes: {// passed as '-v /host/path:/container/path' to the docker run command'/mnt/appdata/files': '/datafiles','/etc/timezone': '/etc/timezone','/etc/localtime': '/etc/localtime'},
Now we have to set a environment variable TZ:
env: {// If you are using ssl, it needs to start with https://
ROOT_URL: ,
MONGO_URL:
PORT: 3000,NODE_OPTIONS: '--max-old-space-size=512',TZ: 'Europe/Amsterdam'},
I am in the CET timezone, which means that
new Date().getTimezoneOffset()
should return-60
at the moment. However it returns0
. 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?The text was updated successfully, but these errors were encountered: