Skip to content

Commit 029f7d1

Browse files
authored
log.sh: Use explicit format for date (#785)
1 parent 65e130f commit 029f7d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/log.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ CASENAME="$(pwd | xargs basename)"
55
LOGFILE="$CASENAME.log"
66
export LOGFILE
77

8-
STARTDATE="$(date --rfc-email)"
8+
STARTDATE="$(date '+%a, %d %b %Y %H:%M:%S %z')"
99
STARTTIME="$(date +%s)"
1010
echo "Started on: $STARTDATE" | tee "$CASENAME.log" 2>&1
1111

1212
close_log() {
1313
echo "Started on: $STARTDATE" | tee --append "$LOGFILE" 2>&1
14-
ENDDATE="$(date --rfc-email)"
14+
ENDDATE="$(date '+%a, %d %b %Y %H:%M:%S %z')"
1515
ENDTIME="$(date +%s)"
1616
echo "Finished on: $ENDDATE" | tee --append "$LOGFILE" 2>&1
1717
echo "Duration: $((ENDTIME-STARTTIME)) seconds (wall-clock time, including time waiting for participants)" | tee --append "$LOGFILE" 2>&1

0 commit comments

Comments
 (0)