[gnome-commander/gcmd-1-14] Update of appdata file



commit 6a4ca381d865ecb85893661e8aa60890536f9fce
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Feb 13 23:21:39 2022 +0100

    Update of appdata file

 data/org.gnome.gnome-commander.appdata.xml.in | 1 +
 src/utils.cc                                  | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/data/org.gnome.gnome-commander.appdata.xml.in b/data/org.gnome.gnome-commander.appdata.xml.in
index 504fa9ac..b71b8ee2 100644
--- a/data/org.gnome.gnome-commander.appdata.xml.in
+++ b/data/org.gnome.gnome-commander.appdata.xml.in
@@ -69,6 +69,7 @@
         </ul>
         <p>This release fixes the following bugs:</p>
         <ul>
+          <li>File modification time in the file list is set to local timezone</li>
           <li>Issue #30: Store URI for tab instead of storing absolute path</li>
         </ul>
         <p>List of developers: ...</p>
diff --git a/src/utils.cc b/src/utils.cc
index 8669ea74..071e917a 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -403,10 +403,13 @@ const gchar *time2string (GDateTime *gDateTime, const gchar *dateFormat)
 
     static gchar buf[64];
 
-    auto dateString = g_date_time_format (gDateTime, dateFormat);
+    auto localGDateTime = g_date_time_to_local (gDateTime);
+
+    auto dateString = g_date_time_format (localGDateTime, dateFormat);
 
     strncpy (buf, dateString, sizeof(buf)-1);
 
+    g_date_time_unref(localGDateTime);
     g_free (dateString);
 
     return buf;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]