Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6a38a55 authored by Kanyinsola Fapohunda's avatar Kanyinsola Fapohunda
Browse files

Adds the old timezone to dumpsys logs after a timezone update.

This makes it easier to understand timezone change logs. This will also make it easier to automatically parse the timezone change logs, as all the relevant information about a timezone change is now included in the timezone change log line.

Change-Id: I18664e3465c0c6145a87010e9928e10167b15567
Flag: EXEMPT log only update
Bug: 290318043
parent 334963a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ public final class SystemTimeZone {
        boolean timeZoneChanged = false;
        synchronized (SystemTimeZone.class) {
            String currentTimeZoneId = getTimeZoneId();
            @TimeZoneConfidence int currentConfidence = getTimeZoneConfidence();
            if (currentTimeZoneId == null || !currentTimeZoneId.equals(timeZoneId)) {
                SystemProperties.set(TIME_ZONE_SYSTEM_PROPERTY, timeZoneId);
                if (DEBUG) {
@@ -145,6 +146,8 @@ public final class SystemTimeZone {
                String logMsg = "Time zone or confidence set: "
                        + " (new) timeZoneId=" + timeZoneId
                        + ", (new) confidence=" + confidence
                        + ", (old) timeZoneId=" + currentTimeZoneId
                        + ", (old) confidence=" + currentConfidence
                        + ", logInfo=" + logInfo;
                addDebugLogEntry(logMsg);
            }