[gnome-terminal/gnome-42] util: Show timestamps in the local timezone
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-42] util: Show timestamps in the local timezone
- Date: Fri, 27 May 2022 16:56:15 +0000 (UTC)
commit 8209fbeec17c835cb99708bcaf956b75b69cd7b3
Author: Christian Persch <chpe src gnome org>
Date: Fri May 27 18:55:12 2022 +0200
util: Show timestamps in the local timezone
Fixes: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7904
(cherry picked from commit cc7bd0a80bb69a1d15138323d3485d5f51669e79)
src/terminal-util.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/terminal-util.cc b/src/terminal-util.cc
index f1be9b26..b581cbe4 100644
--- a/src/terminal-util.cc
+++ b/src/terminal-util.cc
@@ -1073,7 +1073,7 @@ terminal_util_timestamp_info (const char *str)
if (num < 1000000000 || num > 1999999999)
return nullptr;
- gs_unref_date_time GDateTime* date = g_date_time_new_from_unix_utc (num);
+ gs_unref_date_time GDateTime* date = g_date_time_new_from_unix_local (num);
if (date == nullptr)
return nullptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]