Skip to content

setSeconds doesn't work correct with time conversion #7074

@sruetzler

Description

@sruetzler
  • Version: 4.4.5
  • Platform: Ubuntu 14.04.4 x63:64
  • Subsystem:

The problem still exists in 6.2.0

Tested in Timezone Europe/Berlin
Example Code:

date = new Date(1445734861000); //Sun Oct 25 2015 02:01:01 GMT+0100 (CET)
//Right after switching daylight saving off

date.setSeconds(0) //Sun Oct 25 2015 02:01:00 GMT+0200 (CEST)
date.getTime() //1445731260000

The date is now almost one hour before switching daylight saving off.
Expected date: Sun Oct 25 2015 02:01:00 GMT+0100 (CET)
At least in v0.10.32 this works.

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