[glib/cherry-pick-9a5a5c89] Merge branch 'exact-mtime' into 'master'
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/cherry-pick-9a5a5c89] Merge branch 'exact-mtime' into 'master'
- Date: Wed, 2 Oct 2019 08:55:14 +0000 (UTC)
commit 31710330faa4cab5c14801525d8f3699e5396576
Author: Sebastian Dröge <slomo coaxion net>
Date: Wed Oct 2 08:52:40 2019 +0000
Merge branch 'exact-mtime' into 'master'
g_file_info_get_modification_date_time: Calculate in integer domain
See merge request GNOME/glib!1139
(cherry picked from commit 9a5a5c895134d63fd9cdd20fc2e17f47c163443d)
14609b0b g_file_info_get_modification_date_time: Calculate in integer domain
gio/gfileinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index ab4cbea96..032d21144 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -1822,7 +1822,7 @@ g_file_info_get_modification_date_time (GFileInfo *info)
if (value_usec == NULL)
return g_steal_pointer (&dt);
- dt2 = g_date_time_add_seconds (dt, _g_file_attribute_value_get_uint32 (value_usec) / (gdouble)
G_USEC_PER_SEC);
+ dt2 = g_date_time_add (dt, _g_file_attribute_value_get_uint32 (value_usec));
g_date_time_unref (dt);
return g_steal_pointer (&dt2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]