commit | 164c3c53e87548981aa603bf007c0d6c50f0d77a | [log] [tgz] |
---|---|---|
author | Adolfo Victoria <adokar@google.com> | Wed Aug 08 00:55:53 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 08 00:55:53 2018 |
tree | b8b6c1854fb023008575ebb1bc1391d72ddcabf3 | |
parent | 1d6325940783f35fa11602280998e89931459d58 [diff] |
Refactor WeeklyTime to be explicit with timezones * Add timezone_offset_ member variable to WeeklyTime class, this will help the class users know which timezone the class is to be interpreted in. * Add ConvertToTimezone and ConvertToCustomTimezone functions to change between well defined timezones and also to set the timezone of a time agnostic WeklyTime. * Move ToLocalizedString to time_utils since its a more specialized use case. * Add unit tests for timezone related functions to time utils. BUG=chromium:852860 TEST=unit_tests Change-Id: Ifef1b17471c30fb7443727323d00523193327ef1 Reviewed-on: https://chromium-review.googlesource.com/1155786 Commit-Queue: Adolfo Higueros <adokar@google.com> Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#581420}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .