OSDN Git Service

[DO NOT MERGE] Update kernel timezone if call to setTime causes DST offset to change
authorChristine Hallstrom <hallstrom@google.com>
Mon, 21 May 2018 21:27:23 +0000 (14:27 -0700)
committerChristine Hallstrom <hallstrom@google.com>
Mon, 18 Jun 2018 23:44:52 +0000 (23:44 +0000)
commitc5d576de235a9aea6017abc6bed620429ee24c37
treeb4c6fb6ddaf6a7e2ed651a050ea7bcdce00e4845
parenta43886bcaa24984192ec675365ef7d3cfaaba55e
[DO NOT MERGE] Update kernel timezone if call to setTime causes DST offset to change

If AlarmManager#setTime is called with a time that has a different DST
offset than the current system time, update the kernel timezone offset
with the correct value for the time being set.

Test: Manually set time to two times with different DST offsets, ensure
kernel time zone updates properly.

Bug: 80142036
Bug: 80098370
Change-Id: I8884bce471cf4b95372d6d33a36e8c9e92bd6a96
(cherry picked from commit f5d585aec90743c2b3d691b9e307d11dd7a63c65)
services/core/java/com/android/server/AlarmManagerService.java