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