Tweak getTimeZoneKeyName():

* for systems that return "Coordinated Universal Time".
 * return "UTC" instead.
This commit is contained in:
Howard Hinnant
2017-04-18 20:48:28 -04:00
parent 2f8997d3ed
commit b2dc8b1f6e

4
tz.cpp
View File

@@ -2884,7 +2884,9 @@ getTimeZoneKeyName()
char buf[128] = {};
assert(sizeof(buf) >= wlen+1);
wcstombs(buf, dtzi.TimeZoneKeyName, wlen);
return std::string(buf);
if (strcmp(buf, "Coordinated Universal Time") == 0)
return "UTC";
return buf;
}
const time_zone*