Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 626093005: Improve SystemSnapshotMac::TimeZone()’s computation of UTC offsets (Closed)

Created:
6 years, 2 months ago by Mark Mentovai
Modified:
6 years, 2 months ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

Improve SystemSnapshotMac::TimeZone()’s computation of UTC offsets. In locations that observe daylight saving time, this method now probes different times to determine the offset when DST observance is (or is not) in effect. This replaces a hard-coded one-hour offset, accounting for Lord Howe Island, Australia, which is at a 30-minute offset. TEST=snapshot_test SystemSnapshotMacTest.TimeZone R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/0ff46a4e602cd42de5cc5e9da21e1b69387a9f16

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -8 lines) Patch
M snapshot/system_snapshot_mac.cc View 1 chunk +29 lines, -7 lines 1 comment Download
M snapshot/system_snapshot_mac_test.cc View 3 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
Mark Mentovai
This is a more correct way to handle things, in light of https://codereview.chromium.org/626013002/diff/1/snapshot/system_snapshot_mac.cc#newcode361.
6 years, 2 months ago (2014-10-03 21:05:43 UTC) #2
Robert Sesek
LGTM. Timezones are hard. https://codereview.chromium.org/626093005/diff/1/snapshot/system_snapshot_mac.cc File snapshot/system_snapshot_mac.cc (right): https://codereview.chromium.org/626093005/diff/1/snapshot/system_snapshot_mac.cc#newcode360 snapshot/system_snapshot_mac.cc:360: // saving time in effect. ...
6 years, 2 months ago (2014-10-03 22:36:42 UTC) #3
Mark Mentovai
6 years, 2 months ago (2014-10-03 22:40:29 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0ff46a4e602cd42de5cc5e9da21e1b69387a9f16 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698