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

Commit f96c4d6d authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak Committed by android-build-merger
Browse files

Merge "Revert "Revert "Default 'persist.sys.timezone' property to GMT if not...

Merge "Revert "Revert "Default 'persist.sys.timezone' property to GMT if not set on init.""" am: 82d2bd4e am: f9caecd1 am: be71148d
am: eefdc2c6

Change-Id: I8aa40435f0ad3477fef8f3c4650cdd30642acc91
parents 2096edd6 eefdc2c6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -287,6 +287,15 @@ public final class SystemServer {
                SystemClock.setCurrentTimeMillis(EARLIEST_SUPPORTED_TIME);
            }

            //
            // Default the timezone property to GMT if not set.
            //
            String timezoneProperty =  SystemProperties.get("persist.sys.timezone");
            if (timezoneProperty == null || timezoneProperty.isEmpty()) {
                Slog.w(TAG, "Timezone not set; setting to GMT.");
                SystemProperties.set("persist.sys.timezone", "GMT");
            }

            // If the system has "persist.sys.language" and friends set, replace them with
            // "persist.sys.locale". Note that the default locale at this point is calculated
            // using the "-Duser.locale" command line flag. That flag is usually populated by