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