[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [konqueror] [Bug 335556] Date() constructor treats time as UTC instead of localtime
From:       Wolfgang Bauer <wbauer () tmo ! at>
Date:       2014-06-26 12:25:15
Message-ID: bug-335556-5021-SJDEI5u3xO () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=335556

Wolfgang Bauer <wbauer@tmo.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/kdel |http://commits.kde.org/kjs/
                   |ibs/786e0a7821f195c5a227e72 |198c1819e382aed93a574c6f9d5
                   |a41d29033851dc2af           |1c7303985a672

--- Comment #5 from Wolfgang Bauer <wbauer@tmo.at> ---
Git commit 198c1819e382aed93a574c6f9d51c7303985a672 by Wolfgang Bauer.
Committed on 26/06/2014 at 12:21.
Pushed by wbauer into branch 'master'.

treat specified time correctly as localtime in the Date() constructor

Commit 48dd1fc50277b861b49613c5f46b6f8b10cc932d (in KDE4's kdelibs)
introduced a bug:
It factors out the code to convert a time specification to an actual
time value into the function makeTimeFromList().
But in that function makeTime(&t, ms, true) is called, whereas the
original code called makeTime(&t, ms, false) for the constructor.

This patch fixes it by passing the "utc" parameter to makeTime() instead
of "true".
FIXED-IN: 3.13.3
REVIEW: 118947

M  +1    -1    src/kjs/date_object.cpp

http://commits.kde.org/kjs/198c1819e382aed93a574c6f9d51c7303985a672

-- 
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