ICU-5086 Try out better timezone detection.

The default detection without the TZ environment variable still needs to be fixed.

X-SVN-Rev: 19318
This commit is contained in:
George Rhoten 2006-03-03 01:35:59 +00:00
parent 202d985613
commit 393617a8f7

View file

@ -762,7 +762,7 @@ uprv_tzname(int n)
The rest of the time it could be an Olson ID. George */
tzenv = getenv("TZ");
if (tzenv != NULL
&& (uprv_strchr(tzenv, '/') != NULL) || uprv_strlen(tzenv) < 7)
&& (uprv_strchr(tzenv, '/') != NULL || uprv_strlen(tzenv) < 7))
{
/* This might be a good Olson ID. */
if (uprv_strncmp(tzenv, "posix/", 6) == 0