Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Date uses incorrect timezone in Windows #2322

Closed
ghost opened this issue Dec 13, 2011 · 2 comments
Closed

Date uses incorrect timezone in Windows #2322

ghost opened this issue Dec 13, 2011 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 13, 2011

The time zone of the machine is Central European Standard Time (GMT+1:00), but node insists on using Central European Daylight-saving Time (it is what "(Stredoeurópsky čas (letný))" means).

C:\Users\Herby>"c:\Program Files\nodejs\node.exe"
> new Date("12 jul 1974")
Thu, 11 Jul 1974 22:00:00 GMT
> new Date("12 jul 1974").toString()
'Fri Jul 12 1974 00:00:00 GMT+0200 (Stredoeurópsky čas (letný))'
> process.versions
{ node: '0.6.5',
  v8: '3.6.6.11',
  ares: '1.7.5-DEV',
  uv: '0.6',
  openssl: '0.9.8r' }
>
C:\Users\Herby>
@Bonuspunkt
Copy link

results of new Date("12 jul 1974").toString() in various browsers at GMT+1
Chrome: Fri Jul 12 1974 00:00:00 GMT+0200 (W. Europe Daylight Time)
IE: Fri Jul 12 00:00:00 UTC+0200 1974
FF: Fri Jul 12 1974 00:00:00 GMT+0200
Opera: Fri Jul 12 1974 00:00:00 GMT+0200

yes this is accoring to http://en.wikipedia.org/wiki/Central_European_Summer_Time incorrect, but its not a not a node issue

@piscisaureus
Copy link

This is all handled in v8 so if you really want correct daylight savings time handling for dates 30 years back, file a v8 bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants