Blame SOURCES/0002-environment-Fix-date-conversion.patch

067a6b
From dacc190881bceaa8d553ab0486316f2d8e21d224 Mon Sep 17 00:00:00 2001
067a6b
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
067a6b
Date: Mon, 2 Mar 2020 13:46:04 +0100
067a6b
Subject: [PATCH 2/6] environment: Fix date conversion
067a6b
067a6b
This is a regression from commit 06b690ff21204:
067a6b
067a6b
GLib.DateTime.new() expects the full four-digit year, so passing
067a6b
the abbreviated year from Date() will result in a bogus datetime.
067a6b
067a6b
Today is *not* Saturday March 2nd, 120 ...
067a6b
067a6b
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1061
067a6b
---
067a6b
 js/ui/environment.js | 2 +-
067a6b
 1 file changed, 1 insertion(+), 1 deletion(-)
067a6b
067a6b
diff --git a/js/ui/environment.js b/js/ui/environment.js
067a6b
index 78a24f888..c65c05f08 100644
067a6b
--- a/js/ui/environment.js
067a6b
+++ b/js/ui/environment.js
067a6b
@@ -132,7 +132,7 @@ function init() {
067a6b
             _localTimeZone = GLib.TimeZone.new_local();
067a6b
 
067a6b
         let dt = GLib.DateTime.new(_localTimeZone,
067a6b
-            this.getYear(),
067a6b
+            this.getFullYear(),
067a6b
             this.getMonth() + 1,
067a6b
             this.getDate(),
067a6b
             this.getHours(),
067a6b
-- 
067a6b
2.26.0
067a6b