Skip to content

Commit e54e9af

Browse files
shr-projectSusan Montooth
authored andcommitted
build.sh: Show all timestamps in UTC (v3.3.28)
:Release Notes: The time format ends with "Z" as "Zulu" so use -u as "UTC". :Detailed Notes: :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [ES-1095] human-readable timestamps in build logs imply "Zulu" time but are actually local Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com> Change-Id: I93774e23ab7204e0459c87c014304747312dca81 Reviewed-on: https://g2g.palm.com/6305 Reviewed-by: DCO Verification Reviewed-by: Martin Jansa <Martin.Jansa@lge.com> Tested-by: Martin Jansa <Martin.Jansa@lge.com> Reviewed-by: Susan Montooth <susan.montooth@lge.com>
1 parent 1f994a8 commit e54e9af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#set -x
1919

2020
# Some constants
21-
SCRIPT_VERSION="3.3.26"
21+
SCRIPT_VERSION="3.3.28"
2222
SCRIPT_NAME=`basename $0`
2323
AUTHORITATIVE_OFFICIAL_BUILD_SITE="svl"
2424

@@ -43,7 +43,7 @@ BUILD_BUILDHISTORY_BRANCH=
4343
# and form paths based on that
4444
CALLDIR=${PWD}
4545

46-
BUILD_TIMESTAMP_START=`date +%s`
46+
BUILD_TIMESTAMP_START=`date -u +%s`
4747
BUILD_TIMESTAMP_OLD=$BUILD_TIMESTAMP_START
4848

4949
TIME_STR="TIME: %e %S %U %P %c %w %R %F %M %x %C"
@@ -69,8 +69,8 @@ mkdir -p "${ARTIFACTS}"
6969
BUILD_TIME_LOG=${BUILD_TOPDIR}/time.txt
7070

7171
function print_timestamp {
72-
BUILD_TIMESTAMP=`date +%s`
73-
BUILD_TIMESTAMPH=`date +%Y%m%dT%TZ`
72+
BUILD_TIMESTAMP=`date -u +%s`
73+
BUILD_TIMESTAMPH=`date -u +%Y%m%dT%TZ`
7474

7575
local BUILD_TIMEDIFF=`expr ${BUILD_TIMESTAMP} - ${BUILD_TIMESTAMP_OLD}`
7676
local BUILD_TIMEDIFF_START=`expr ${BUILD_TIMESTAMP} - ${BUILD_TIMESTAMP_START}`

0 commit comments

Comments
 (0)