[fuchsia] Enable TimeTest.LocalTimeT to actually test local time
Fuchsia uses ICU rather than POSIX functions for Exploded time, but the ICU time zone was not being set, so this test was always comparing UTC time to UTC time. The tests relies on localtime_r() to obtain the local time for comparison, but POSIX local time functions always use UTC on Fuchsia so the test must manually account for the time offset. time_exploded_icu.cc::CreateCalendar() is removed. Bug: 985946 Test: TimeTest.LocalTimeT fails if the |is_local| check in Change-Id: I69701c37f5eea1eedd5020d46a2401818e73da16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1952524Reviewed-by:Wez <wez@chromium.org> Reviewed-by:
Yuri Wiitala <miu@chromium.org> Commit-Queue: David Dorwin <ddorwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#723434}
Showing
Please register or sign in to comment