summaryrefslogtreecommitdiff
path: root/src/dlg-prop.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-01 20:41:47 +0200
committerraveit65 <[email protected]>2019-09-10 21:19:07 +0200
commit29b945fd67d1e7eb93cfe66d089977d064c7f7bc (patch)
treeecdeac447d0b8ccef586b3e68a2d7f52fd54d81f /src/dlg-prop.c
parent758b9d3a9587816b0a6837fdc8dcb3bf1c33dea9 (diff)
downloadengrampa-29b945fd67d1e7eb93cfe66d089977d064c7f7bc.tar.bz2
engrampa-29b945fd67d1e7eb93cfe66d089977d064c7f7bc.tar.xz
glib-utils: Remove get_time_string()
get_time_string() is a local function that wraps strftime(). In contrast to strftime(), g_date_time_format() always produces an UTF-8 string, regardless of the current locale.
Diffstat (limited to 'src/dlg-prop.c')
-rw-r--r--src/dlg-prop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index 5230647..86762f6 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -135,7 +135,10 @@ dlg_prop (FrWindow *window)
set_label (label_label, _("Last modified:"));
label = _gtk_builder_get_widget (data->builder, "p_date_label");
- s = get_time_string (get_file_mtime (fr_window_get_archive_uri (window)));
+ GDateTime *date_time;
+ date_time = g_date_time_new_from_unix_local (get_file_mtime (fr_window_get_archive_uri (window)));
+ s = g_date_time_format (date_time, _("%d %B %Y, %H:%M"));
+ g_date_time_unref (date_time);
gtk_label_set_text (GTK_LABEL (label), s);
g_free (s);