Skip to content

Commit fb1e552

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "Fix time zone info in kernel is nothing after reboot"
2 parents 334a4d8 + 64ba8e4 commit fb1e552

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

services/java/com/android/server/AlarmManagerService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ private static final class BroadcastStats {
122122
public AlarmManagerService(Context context) {
123123
mContext = context;
124124
mDescriptor = init();
125+
126+
// We have to set current TimeZone info to kernel
127+
// because kernel doesn't keep this after reboot
128+
String tz = SystemProperties.get(TIMEZONE_PROPERTY);
129+
if (tz != null) {
130+
setTimeZone(tz);
131+
}
132+
125133
PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
126134
mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
127135

0 commit comments

Comments
 (0)