mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-30 17:36:16 +01:00
Merge branch 'exact-mtime' into 'master'
g_file_info_get_modification_date_time: Calculate in integer domain See merge request GNOME/glib!1139
This commit is contained in:
commit
9a5a5c8951
@ -1822,7 +1822,7 @@ g_file_info_get_modification_date_time (GFileInfo *info)
|
|||||||
if (value_usec == NULL)
|
if (value_usec == NULL)
|
||||||
return g_steal_pointer (&dt);
|
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);
|
g_date_time_unref (dt);
|
||||||
|
|
||||||
return g_steal_pointer (&dt2);
|
return g_steal_pointer (&dt2);
|
||||||
|
Loading…
Reference in New Issue
Block a user