[gnome-control-center/wip/kate/improve-datetime: 2/2] firmware-security: improve datetime format parsing




commit 8dd18e0791f75ca36d783adbb4e160d1670a3c01
Author: Kate Hsuan <hpa redhat com>
Date:   Tue Aug 30 17:55:11 2022 +0800

    firmware-security: improve datetime format parsing
    
    Showing the datetime string using cc_util_get_smart_date_time().

 panels/firmware-security/cc-firmware-security-panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/firmware-security/cc-firmware-security-panel.c 
b/panels/firmware-security/cc-firmware-security-panel.c
index 8a5bb5e9a..c5defb1c0 100644
--- a/panels/firmware-security/cc-firmware-security-panel.c
+++ b/panels/firmware-security/cc-firmware-security-panel.c
@@ -184,7 +184,7 @@ parse_event_variant_iter (CcfirmwareSecurityPanel *self,
 
   /* build new row */
   date = g_date_time_new_from_unix_local (attr->timestamp);
-  date_string = g_date_time_format (date, "\%F \%H:\%m:\%S");
+  date_string = cc_util_get_smart_date_time (date);
 
   row = adw_expander_row_new ();
   if (attr->flags & FWUPD_SECURITY_ATTR_FLAG_SUCCESS)


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