]> git.proxmox.com Git - pve-guest-common.git/blobdiff - PVE/Replication.pm
change replica log timestamp to a human readable format
[pve-guest-common.git] / PVE / Replication.pm
index 0db427d6f5e44e96f917e0728ad0da402158d1c7..5a7274e79519a726642e9cef7c5483469de52cd5 100644 (file)
@@ -5,6 +5,7 @@ use strict;
 use Data::Dumper;
 use JSON;
 use Time::HiRes qw(gettimeofday tv_interval);
+use POSIX qw(strftime);
 
 use PVE::INotify;
 use PVE::ProcFSTools;
@@ -19,7 +20,7 @@ use PVE::ReplicationState;
 # regression tests should overwrite this
 sub get_log_time {
 
-    return time();
+    return strftime("%F %H:%M:%S", localtime);
 }
 
 # Find common base replication snapshot, available on local and remote side.