Skip to content

date.toString timezone differences in v10.4.x #21390

Closed
@ravishivt

Description

@ravishivt
  • Version: v10.4.1
  • Platform: Linux 8a47e98f5019 4.9.87-linuxkit-aufs deps: update openssl to 1.0.1j #1 SMP Wed Mar 14 15:12:16 UTC 2018 x86_64 Linux (docker node:10.4.1-alpine container)
  • Subsystem: unknown

v10.4.0 does not abbreviate the timezone. I think this is due to the V8 6.6 -> 6.7 upgrade in #19989 as per this comment but wanted to confirm this is the correct behavior. The change has affected many of my jest snapshots.

v10.3.0:

# node -e 'console.log((new Date(0)).toString())'
Thu Jan 01 1970 00:00:00 GMT+0000 (UTC)

v10.4.1 (and v10.4.0):

# node -e 'console.log((new Date(0)).toString())'
Thu Jan 01 1970 00:00:00 GMT+0000 (Coordinated Universal Time)

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