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