commit | 404efc93ae2caeafe613e1127f64ff393433f06a | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Wed Mar 07 11:32:32 2018 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Thu Mar 08 15:26:18 2018 +0000 |
tree | 61d76f3fe47fb77ea83fac143df90d2502e9d9dd | |
parent | be1033fda24a7c1ba9ef3ca590da30be56acc6d2 [diff] |
Calculate timestamp using local time zone in system update unit tests Replace hardcoded timestamp for test dates with values calculated from local time zone, because the SystemUpdatePolicy API assumes dates and timestamps are in local time zone. Also tweak test dates to avoid daylight saving time boundaries. Bug: 74335646 Test: runtest frameworks-services -c com.android.server.devicepolicy.SystemUpdatePolicyTest Change-Id: I532cd485a8ddd8b2a652fa90dee0deb932954662