diff --git a/src/shell-util.c b/src/shell-util.c index d38c5ab98..3f57ada8d 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -144,13 +144,9 @@ shell_util_format_date (const char *format, gint64 time_ms) { GDateTime *datetime; - GTimeVal tv; char *result; - tv.tv_sec = time_ms / 1000; - tv.tv_usec = (time_ms % 1000) * 1000; - - datetime = g_date_time_new_from_timeval_local (&tv); + datetime = g_date_time_new_from_unix_local (time_ms / 1000); if (!datetime) /* time_ms is out of range of GDateTime */ return g_strdup ("");