time.mktime_EOVERFLOW: set an explicit timezone.
Bug: http://b/283397453 Test: export TZ=Asia/Shanghai Change-Id: Ia03822adad367abf35a0fdf55d7367cd1764fcdd
This commit is contained in:
parent
e98bf160eb
commit
f52b2165cb
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ TEST(time, mktime_10310929) {
|
|||
}
|
||||
|
||||
TEST(time, mktime_EOVERFLOW) {
|
||||
setenv("TZ", "UTC", 1);
|
||||
|
||||
struct tm t;
|
||||
memset(&t, 0, sizeof(tm));
|
||||
|
||||
|
|
Loading…
Reference in a new issue