[gnome-shell/wip/snwh/appgrid-regression-fixes] dateMenu: Get interval for the right timezone
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/snwh/appgrid-regression-fixes] dateMenu: Get interval for the right timezone
- Date: Mon, 21 Feb 2022 19:27:36 +0000 (UTC)
commit 8f08cc637a93c4a4068666f8b0a5d00646b49965
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Feb 18 14:26:23 2022 +0100
dateMenu: Get interval for the right timezone
We're calling get_interval on tzA right now for both the tzA and tzB,
this causes a critical error during shell startup:
g_time_zone_get_offset: assertion 'interval_valid (tz, (guint)interval)' failed
Fix this and use tzB to get the offset for timezone b.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2195>
js/ui/dateMenu.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 42cc192df2..8ed1a579b0 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -379,7 +379,7 @@ class WorldClocksSection extends St.Button {
const tzA = a.location.get_timezone();
const tzB = b.location.get_timezone();
const intA = tzA.find_interval(GLib.TimeType.STANDARD, unixtime);
- const intB = tzA.find_interval(GLib.TimeType.STANDARD, unixtime);
+ const intB = tzB.find_interval(GLib.TimeType.STANDARD, unixtime);
return tzA.get_offset(intA) - tzB.get_offset(intB);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]