[gnome-software] snap: Set install date
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Set install date
- Date: Wed, 31 May 2017 07:55:05 +0000 (UTC)
commit 54c10336445ecc9a29849290e9e1a072e3bd00e5
Author: Robert Ancell <robert ancell canonical com>
Date: Wed May 31 19:52:14 2017 +1200
snap: Set install date
plugins/snap/gs-plugin-snap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index b5b5cf1..3c4339b 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -180,6 +180,8 @@ gs_plugin_snap_refine_app (GsPlugin *plugin,
gs_app_set_size_installed (app, snapd_snap_get_installed_size (snap));
if (snapd_snap_get_download_size (snap) > 0)
gs_app_set_size_download (app, snapd_snap_get_download_size (snap));
+ if (snapd_snap_get_install_date (snap) != NULL)
+ gs_app_set_install_date (app, g_date_time_to_unix (snapd_snap_get_install_date (snap)));
if (gs_plugin_check_distro_id (plugin, "ubuntu"))
gs_app_add_quirk (app, AS_APP_QUIRK_PROVENANCE);
if (snapd_snap_get_confinement (snap) == SNAPD_CONFINEMENT_STRICT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]