Improve timezone names returned by POSIX functions.

* Use TimeZone::SHORT specifier instead of SHORT_COMMONLY_USED, since
  the former yields more appropriate (textual) values. Strangely enough,
  it used to be the other way around, which is why we didn't used SHORT
  in the past.
This commit is contained in:
Oliver Tappe 2011-12-27 14:14:55 +01:00
parent 83cbfa5e0e
commit f4995c1381

View File

@ -124,7 +124,7 @@ ICUTimeConversion::TZSet(const char* timeZoneID, const char* tz)
strcpy(fDataBridge->addrOfTZName[0], fTimeZoneID);
} else {
UnicodeString icuString;
fTimeZone->getDisplayName(i == 1, TimeZone::SHORT_COMMONLY_USED,
fTimeZone->getDisplayName(i == 1, TimeZone::SHORT,
fTimeData.ICULocale(), icuString);
CheckedArrayByteSink byteSink(fDataBridge->addrOfTZName[i],
sizeof(fTimeZoneID));