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

am: f9caecd124

Change-Id: I69e18dc2838c9472b6962a181d3faa0873b27e38
This commit is contained in:
Przemyslaw Szczepaniak
2017-08-03 10:40:54 +00:00
committed by android-build-merger

View File

@@ -278,6 +278,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