Skip to content

Regression on Date.getHours() on node v10.4.1 #21308

Closed
@germain-gg

Description

@germain-gg
  • Version: 10.4.1
  • Platform: Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64

I have recently upgraded to node v10.4.1, we were running on v10.3.0 before but decided to upgrade due to https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/

It seems like there is a regression on the Date object with timezone.

const d1 = new Date(1);
console.log(d1.getHours()); // outputs 1

The expected output is 0. When running v10.3.0, the code above outputs 0.

I am located in London, which means that my timezone is BST (British Summer Time). My computer date/time is correct, it is connected to Apple's NTP server (time.euro.apple.com)

Not sure what other info would be relevant for you to solve this issue. Let me know if you need anything from me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions