Skip to content
Snippets Groups Projects
Commit 39683553 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

block: use GDateTime for formatting timestamp when dumping snapshot info


The GDateTime APIs provided by GLib avoid portability pitfalls, such
as some platforms where 'struct timeval.tv_sec' field is still 'long'
instead of 'time_t'. When combined with automatic cleanup, GDateTime
often results in simpler code too.

Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent 85cd1cc6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment