Closed
Bug 1227499
Opened 9 years ago
Closed 7 years ago
Inspector console new Date() format
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1073533
People
(Reporter: dosergio, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20151029151421 Steps to reproduce: This test must be done with the machine using a different timezone than GMT 00:00 I use Windows 7 Open default Mozilla Firefox Inspector go to Console run the command "new Date()" Actual results: The date shown uses the GMT timezone (+00:00), but my locale is GMT-3:00. It shows a few hours ADVANCED in time. Ex: if it is 10:00 it returns 12:00 we are in savings time (-3:00 + 1:00). Note that using Firebug extension, it shows the correct date. The problem is in the native Inspector Console. Expected results: Date should be GMT-3:00, I mean, two hours LESS.
Summary: Inspector console uses different timezone → Inspector console new Date() format
I found out that if I run new Date().getHours(), the value comes correct! So... the complaint is ONLY with the format that Mozilla Inspector displays the new Date(), it doesn't make clear the timezone, and shows the Greenwich time, not respecting the user local timezone. Right now in Brazil it's 13:32 That's what Mozilla Inspector Console says: Date 2015-11-24T15:32:30.770Z I think that '15 hours' make confusion to users.
Comment 2•9 years ago
|
||
Indeed it is confusing. This is a duplicate of Bug 1079720. Thanks Sergio for taking the time to report this issue.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Comment 3•9 years ago
|
||
Bug 1079720 is an entirely different issue (https://en.wikipedia.org/wiki/Time_in_Russia#2014_zone_boundary_changes), whereas this issue is about using Date.prototype.toISOString for date formatting in the DevTools console.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Comment 4•9 years ago
|
||
Thank you Andre for the heads up.
Component: Untriaged → Developer Tools: Console
Comment 5•7 years ago
|
||
Seems to be a dup of the bug requesting that Date be formatted using the local timezone.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•