mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
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:
parent
202d985613
commit
393617a8f7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue