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




commit 54d1070faefb355de1d9dbad0937428b6539625d
Author: Kate Hsuan <hpa redhat com>
Date:   Wed Aug 31 10:41:58 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 bf0ba70bf..ba45196f3 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]