mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
selftest: Fix subunit reporting the time incorrectly
Although report_time() would output the time in UTC, it neglected to specify the timezone offset. Thus subunithelper.parse_results() would interpret the time string it was given as being in local time. TestProtocolClient.time() then converted that *back* into UTC, giving an incorrect result (unless UTC is your local timezone). Fix this by having report_time() indicate that the time zone is UTC. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15162 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
cbc0ff187a
commit
fc41a35a9b
@ -55,7 +55,7 @@ sub report_time()
|
||||
if (substr($msg, 1, 1) eq ".") {
|
||||
$msg = "0" . $msg;
|
||||
}
|
||||
printf "time: %04d-%02d-%02d %02d:%02d:%s\n", $year+1900, $mon+1, $mday, $hour, $min, $msg;
|
||||
printf "time: %04d-%02d-%02d %02d:%02d:%sZ\n", $year+1900, $mon+1, $mday, $hour, $min, $msg;
|
||||
}
|
||||
|
||||
sub progress_pop()
|
||||
|
Loading…
Reference in New Issue
Block a user