Revert "util: cache local GTimeZone"

This reverts commit f597a0a11c.
This commit is contained in:
Christian Hergert
2020-02-26 23:43:25 -08:00
parent 5ccf92e804
commit b48e95cba2
4 changed files with 1 additions and 34 deletions

View File

@ -573,11 +573,6 @@ var DateMenuButton = new Lang.Class({
// https://bugzilla.gnome.org/show_bug.cgi?id=678507
System.clearDateCaches();
// To reduce the number of times that Shell opens /etc/localtime on
// the main thread to parse timezone info, we cache the result. That
// needs to be cleared when we change timezones.
Shell.util_clear_timezone_cache();
this._calendar.updateTimeZone();
},

View File

@ -118,7 +118,7 @@ function init() {
// Work around https://bugzilla.mozilla.org/show_bug.cgi?id=508783
Date.prototype.toLocaleFormat = function(format) {
return Shell.util_format_now(format);
return Shell.util_format_date(format, this.getTime());
};
let slowdownEnv = GLib.getenv('GNOME_SHELL_SLOWDOWN_FACTOR');