Skip to content
Snippets Groups Projects
Commit bdd0303a authored by Arthur Edelstein's avatar Arthur Edelstein Committed by Georg Koppen
Browse files

Bug 20981: On Windows, check TZ for timezone first

parent 0ee3aa4c
Branches
Tags
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment