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




commit d61f6dc5b04d21b0e5a71c10cb41b60deee141a5
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 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]