time.mktime_EOVERFLOW: set an explicit timezone.

Bug: http://b/283397453
Test: export TZ=Asia/Shanghai
Change-Id: Ia03822adad367abf35a0fdf55d7367cd1764fcdd
This commit is contained in:
Elliott Hughes 2023-05-19 16:09:47 -07:00
parent e98bf160eb
commit f52b2165cb

View file

@ -168,6 +168,8 @@ TEST(time, mktime_10310929) {
}
TEST(time, mktime_EOVERFLOW) {
setenv("TZ", "UTC", 1);
struct tm t;
memset(&t, 0, sizeof(tm));