digitalclock: Don't reverse js timezone offset when using to generate utc from local time.

Review Request #123079 - Created March 20, 2015 and submitted

Information
Jeremy Whiting
plasma-workspace
master
1176300...
Reviewers
plasma
mklapetek
digitalclock: Don't reverse js timezone offset when using to generate utc from local time.

In this place we are using the offset to calculate utc from the local time. My timezone is -6 and my getTimezoneOffset is 360. To take my local time and get utc, we need to add 6 hours, not subtract 6 hours. We could either subtract the reverse of the js value, or just add it directly.

My local time in the tooltip has the right time now. All others are also calculated correctly now.

Martin Klapetek
Martin Klapetek
Jeremy Whiting
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 0b82fc7e455bdc2c4b419c26e1f5349205c25a65 by Jeremy Whiting to branch Plasma/5.2.
Loading...