From aded6d438a2f2daa1beb36e6866f5601c8538b52 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Tue, 31 May 2022 12:41:50 +0200 Subject: [PATCH] feat(cli): use correct timezones strings for log info; show build duration --- src/models/logs.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/logs.v b/src/models/logs.v index c92dc07..7f5a5fe 100644 --- a/src/models/logs.v +++ b/src/models/logs.v @@ -17,8 +17,9 @@ pub fn (bl &BuildLog) str() string { mut parts := [ 'id: $bl.id', 'repo id: $bl.repo_id', - 'start time: $bl.start_time', - 'end time: $bl.end_time', + 'start time: $bl.start_time.local()', + 'end time: $bl.end_time.local()', + 'duration: ${bl.end_time - bl.start_time}', 'arch: $bl.arch', 'exit code: $bl.exit_code', ]