time zone string wrong in javascript

RESOLVED FIXED

Status

()

Core
JavaScript Engine
P3
normal
RESOLVED FIXED
a year ago
6 months ago

People

(Reporter: Erik Bennett, Unassigned)

Tracking

({triage-deferred})

52 Branch
triage-deferred
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170323105023

Steps to reproduce:

Open the developer tools console.
Type: Date();

//
I found similar defects, but they were so old, I could not believe that this could be the same one.  I don't know how to capture the version information you might need, so this is what I found in the "navigator" object.
navigator.userAgent
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"
navigator.buildID
"20170323105023"

It's current-patched Windows 7(amd64).



Actual results:

"Mon Apr 10 2017 17:25:07 GMT-0700 (Pacific Standard Time)"


Expected results:

"Mon Apr 10 2017 17:25:07 GMT-0700 (Pacific Daylight Time)"

Updated

a year ago
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Keywords: triage-deferred
Priority: -- → P3
Fixed in https://hg.mozilla.org/mozilla-central/rev/b7ef07909cc4


Before (Win10):
new Date(2017, 4-1, 10, 17, 25, 7).toString()
"Mon Apr 10 2017 17:25:07 GMT-0700 (Pacific Standard Time)"


After (Win10):
new Date(2017, 4-1, 10, 17, 25, 7).toString()
"Mon Apr 10 2017 17:25:07 GMT-0700 (Pacific Daylight Time)"
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.