summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2022-02-22 10:31:53 -0800
committerPhaedrus Leeds <mwleeds@protonmail.com>2022-03-21 13:07:44 -0700
commitd157c9529a8e33b8343a6954cea7346517002bc8 (patch)
treebdf50af5316a5d7e47e1c3f8f25a4e7558c446cd /src
parent46aedab1624f49d7fad5dc5a6373cb3ac7180d11 (diff)
downloadepiphany-d157c9529a8e33b8343a6954cea7346517002bc8.tar.gz
Get rid of web app install_date string
Just create the string in the one place we need it rather than always storing it. This introduces no functional changes.
Diffstat (limited to 'src')
-rw-r--r--src/profile-migrator/ephy-legacy-web-app-utils.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/profile-migrator/ephy-legacy-web-app-utils.c b/src/profile-migrator/ephy-legacy-web-app-utils.c
index 09c31ba1a..c256bf1ac 100644
--- a/src/profile-migrator/ephy-legacy-web-app-utils.c
+++ b/src/profile-migrator/ephy-legacy-web-app-utils.c
@@ -237,8 +237,6 @@ ephy_legacy_web_application_for_profile_directory (const char *profile_dir)
g_auto (GStrv) argv = NULL;
g_autoptr (GFile) file = NULL;
g_autoptr (GFileInfo) file_info = NULL;
- guint64 created;
- g_autoptr (GDate) date = NULL;
id = get_app_id_from_profile_directory (profile_dir);
if (!id)
@@ -265,11 +263,7 @@ ephy_legacy_web_application_for_profile_directory (const char *profile_dir)
/* FIXME: this should use TIME_CREATED but it does not seem to be working. */
file_info = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED, 0, NULL, NULL);
- created = g_file_info_get_attribute_uint64 (file_info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
-
- date = g_date_new ();
- g_date_set_time_t (date, (time_t)created);
- g_date_strftime (app->install_date, 127, "%x", date);
+ app->install_date_uint64 = g_file_info_get_attribute_uint64 (file_info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
return g_steal_pointer (&app);
}