ICU-11987 Apply patch for TZ detection

X-SVN-Rev: 38093
This commit is contained in:
Michael Ow 2015-11-19 21:16:12 +00:00
parent 83732e4bec
commit d0ed7b3b60

View File

@ -1000,6 +1000,10 @@ uprv_tzname(int n)
&& uprv_strcmp(tzid, TZ_ENV_CHECK) != 0
#endif
) {
/* The colon forces tzset() to treat the remainder as zoneinfo path */
if (tzid[0] == ':') {
tzid++;
}
/* This might be a good Olson ID. */
skipZoneIDPrefix(&tzid);
return tzid;