mirror of
https://github.com/google/googletest.git
synced 2025-12-21 11:04:54 +08:00
Merge branch 'google:main' into master
This commit is contained in:
commit
4e2f3f7e3b
@ -471,6 +471,12 @@ class FormatEpochTimeInMillisAsIso8601Test : public Test {
|
|||||||
tzset();
|
tzset();
|
||||||
GTEST_DISABLE_MSC_WARNINGS_POP_()
|
GTEST_DISABLE_MSC_WARNINGS_POP_()
|
||||||
#else
|
#else
|
||||||
|
#if GTEST_OS_LINUX_ANDROID && __ANDROID_API__ < 21
|
||||||
|
// Work around KitKat bug in tzset by setting "UTC" before setting "UTC+00".
|
||||||
|
// See https://github.com/android/ndk/issues/1604.
|
||||||
|
setenv("TZ", "UTC", 1);
|
||||||
|
tzset();
|
||||||
|
#endif
|
||||||
if (time_zone) {
|
if (time_zone) {
|
||||||
setenv(("TZ"), time_zone, 1);
|
setenv(("TZ"), time_zone, 1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user