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

Unified Diff: source/i18n/timezone.cpp

Issue 1058353002: Fix the tz detection code. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: add upstream bug ref Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/putilimp.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/timezone.cpp
diff --git a/source/i18n/timezone.cpp b/source/i18n/timezone.cpp
index 6b3f8d28ba434a1e85cd76e72a2403eca96ee804..a80fdda927a447fb64e64c92bf8c1f68219e9225 100644
--- a/source/i18n/timezone.cpp
+++ b/source/i18n/timezone.cpp
@@ -453,6 +453,8 @@ TimeZone::detectHostTimeZone()
uprv_tzset(); // Initialize tz... system data
+ uprv_tzname_clear_cache();
+
// Get the timezone ID from the host. This function should do
// any required host-specific remapping; e.g., on Windows this
// function maps the Date and Time control panel setting to an
« no previous file with comments | « source/common/putilimp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698