Skip to content
Permalink
Browse files
Bug 20981: On Windows, check TZ for timezone first
  • Loading branch information
arthuredelstein committed Jan 17, 2017
1 parent 0357c67 commit ba2b70c48a5823d654f96842c0f2041d147dd679
Showing with 5 additions and 0 deletions.
  1. +5 −0 intl/icu/source/common/putil.cpp
@@ -984,6 +984,11 @@ uprv_tzname(int n)
{
const char *tzid = NULL;
#if U_PLATFORM_USES_ONLY_WIN32_API
char* envValue = getenv("TZ");
if (envValue != NULL) {
return uprv_strdup(envValue);
}

tzid = uprv_detectWindowsTimeZone();

if (tzid != NULL) {

0 comments on commit ba2b70c

Please sign in to comment.