Closed
Bug 1023512
Opened 12 years ago
Closed 11 years ago
Date object is displaying the wrong timezone
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 879261
People
(Reporter: zevvy2, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140506152807
Steps to reproduce:
create a new Date object
Actual results:
the GMT is listed as GMT-0500 (Eastern Standard Time)
the GMT is listed as GMT-0400 (Eastern Daylight Time)
Expected results:
the GMT is listed as GMT-0500 (Eastern Daylight Time)
the GMT is listed as GMT-0400 (Eastern Standard Time)
Comment 1•12 years ago
|
||
Testcase please?
(new Date()).toString() returns "Wed Jun 11 2014 01:07:31 GMT-0400 (EDT)" for me.
Component: Untriaged → JavaScript Engine
OS: Windows 8 → All
Product: Firefox → Core
Hardware: x86_64 → All
Comment 2•12 years ago
|
||
(new Date()).toLocaleString('en-US', { timeZoneName: 'long' }) returns "6/11/2014, 1:14:37 AM Eastern Daylight Time".
And actually this is correct:
> Actual results:
>
> the GMT is listed as GMT-0500 (Eastern Standard Time)
> the GMT is listed as GMT-0400 (Eastern Daylight Time)
EST is -5, EDT is -4. That's my timezone in Toronto.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
When I send the date to the back end and when I log new Date() to the console in firebug this is what I get:
Date {Wed Jun 11 2014 08:41:13 GMT-0400 (Eastern Standard Time)}.
In chrome and IE, when I log new Date(), I get this:
Wed Jun 11 2014 09:12:23 GMT-0400 (Eastern Daylight Time)
I am using Firefox 29.0.1.
Comment 4•12 years ago
|
||
What the built-in console of Firefox says? Any sample code?
Flags: needinfo?(zevvy2)
Comment 8•11 years ago
|
||
This is Windows-specific.
Bug 879261, comment 1.
Bug 879261, comment 9.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago → 11 years ago
OS: All → Windows
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•