GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Date parse behavior change in node-v8 ? · Issue #13210 · nodejs/node

Date parse behavior change in node-v8 ? #13210

New issue
Copy link
New issue
Copy link
Closed
Closed
Date parse behavior change in node-v8 ?#13210
Copy link
Labels
notable-changePRs with changes that should be highlighted in changelogs.questionIssues asking questions about Node.js.v8 engineIssues and PRs related to the V8 dependency.

Description

@c0b
c0b
opened on May 25, 2017
Issue body actions

this is the latest v8 nightly: it parses as a local timestamp:

➸ ./opt/node-v8.0.0-nightly20170524260cd411d4-linux-x64/bin/node -p 'new Date("2017-05-24T00:00:00")'
2017-05-24T07:00:00.000Z

vs. v7 and v6 below parse the same string always as UTC

➸ ./opt/node-v7.10.0-linux-x64/bin/node -p 'new Date("2017-05-24T00:00:00")'
2017-05-24T00:00:00.000Z
Reacted by Nungzakpp
Reacted by Nungzakpp

Activity

  1. mscdex commented on May 25, 2017

    @mscdex
    mscdex
    on May 25, 2017
    Contributor
    More actions

    This could be why the ftp test has been failing in citgm for master. According to at least the ECMAScript 2018 spec this behavior is correct (I'm not sure if/when it changed though):

    When the time zone offset is absent, date-only forms are interpreted as a UTC time and date-time forms are interpreted as a local time.

    EDIT: It looks like this behavior may have changed in ES2015

  2. mscdex
    added
    questionIssues asking questions about Node.js.
    v8 engineIssues and PRs related to the V8 dependency.
    on May 25, 2017
  3. bnoordhuis commented on May 25, 2017

    @bnoordhuis
    bnoordhuis
    on May 25, 2017
    Member
    More actions

    EDIT: It looks like this behavior may have changed in ES2015

    Yes, that's correct. I'll close this out as working per spec but it's something we probably want to call out in the release notes.

  4. bnoordhuis
    closed this as completedon May 25, 2017
  5. gibfahn
    added
    notable-changePRs with changes that should be highlighted in changelogs.
    on May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    notable-changePRs with changes that should be highlighted in changelogs.questionIssues asking questions about Node.js.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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.