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>
Tue, 22 May 2018 18:53:42 +0000 (11:53 -0700)
commitf5d585aec90743c2b3d691b9e307d11dd7a63c65
treee3b8e677a9ed0cfb5caa535dd37926a17c9a2544
parentdd0ff99ab470cde2db4b3d6003c87c4cd74160e4
[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: 80098370
Change-Id: I8884bce471cf4b95372d6d33a36e8c9e92bd6a96
services/core/java/com/android/server/AlarmManagerService.java