diff --git a/tests/pass-dep/libc/libc-time.rs b/tests/pass-dep/libc/libc-time.rs index 3182b6d3e9..b679d1924d 100644 --- a/tests/pass-dep/libc/libc-time.rs +++ b/tests/pass-dep/libc/libc-time.rs @@ -148,7 +148,7 @@ fn test_localtime_r_pst() { target_os = "android" ))] { - assert_eq!(tm.tm_gmtoff, -25200); // -7 hours in seconds + assert_eq!(tm.tm_gmtoff, -7 * 3600); // -7 hours in seconds unsafe { assert_eq!(std::ffi::CStr::from_ptr(tm.tm_zone).to_str().unwrap(), "-07"); }