commit | db123a73cad6714a7f4b906977c615d1d67f13f4 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri May 19 16:09:47 2023 -0700 |
committer | Elliott Hughes <enh@google.com> | Sat Jan 06 00:19:03 2024 +0000 |
tree | 21a4c879ca6c57ab33c7ed872cb57328212b452b | |
parent | 9908b1e3c8708aba09afa9f76f05ed4a1a4f4844 [diff] [blame] |
time.mktime_EOVERFLOW: set an explicit timezone. Bug: http://b/283397453 (original) Bug: http://b/307680874 (cherrypick) Test: export TZ=Asia/Shanghai Change-Id: Ia03822adad367abf35a0fdf55d7367cd1764fcdd (cherry picked from commit f52b2165cb5bb02d5779998371caba4b2df3134d)
diff --git a/tests/time_test.cpp b/tests/time_test.cpp index f0ad937..5f802aa 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp
@@ -168,6 +168,8 @@ } TEST(time, mktime_EOVERFLOW) { + setenv("TZ", "UTC", 1); + struct tm t; memset(&t, 0, sizeof(tm));