diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-04-30 12:59:06 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-06-14 13:28:50 +0100 |
commit | 85cd1cc6687e827f3e5e94ad2e13444b75d0c5fa (patch) | |
tree | 54c0899bd8dd19edc241f732cdc356e843a6c79c /block | |
parent | 99be1ac366c20992242f6cd0b9458e3ef52a7a70 (diff) |
migration: use GDateTime for formatting timestamp in snapshot names
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: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions