[prev in list] [next in list] [prev in thread] [next in thread]
List: konq-bugs
Subject: [konqueror] [Bug 335556] New: Date() constructor treats time as UTC instead of localtime
From: Wolfgang Bauer <wbauer () tmo ! at>
Date: 2014-05-29 20:32:06
Message-ID: bug-335556-5021 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=335556
Bug ID: 335556
Summary: Date() constructor treats time as UTC instead of
localtime
Classification: Unclassified
Product: konqueror
Version: 4.13.1
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: kjs
Assignee: konq-bugs@kde.org
Reporter: wbauer@tmo.at
When creating a new Date() object with a specific date/time, that passed time
is treated as UTC, although it should be localtime.
Reproducible: Always
Steps to Reproduce:
1. Open attached html file in Konqueror
Actual Results:
Wrong time is displayed (according to your time zone)
Expected Results:
The time that is passed to the constructor should be shown.
Other browsers, like Firefox or even Konqueror with the WebKit engine, treat
the time as local time.
The specification does not clearly state whether that time should be treated as
UTC or localtime AFAICS, but there's an explicit note in the documentation of
the Date.UTC() function:
NOTE The UTC function differs from the Date constructor in two ways: it
returns a time value as a Number, rather than creating a Date object, and it
interprets the arguments in UTC rather than as local time.
(http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.4.3)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic