Skip to content

Commit fdc210a

Browse files
committed
Align fallback date behavior and normalize spacing
1 parent 78d5da4 commit fdc210a

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
@@ -6,15 +6,15 @@ LOGFILE="$CASENAME.log"
66
export LOGFILE
77

88
rfc_email_date() {
9-
date --rfc-email 2>/dev/null || date -u '+%a, %d %b %Y %H:%M:%S %z'
9+
date --rfc-email 2>/dev/null || date '+%a, %d %b %Y %H:%M:%S %z'
1010
}
1111

1212
STARTDATE="$(rfc_email_date)"
1313
STARTTIME="$(date +%s)"
1414
echo "Started on: $STARTDATE" | tee "$CASENAME.log" 2>&1
1515

1616
close_log() {
17-
echo "Started on: $STARTDATE" | tee -a "$LOGFILE" 2>&1
17+
echo "Started on: $STARTDATE" | tee -a "$LOGFILE" 2>&1
1818
ENDDATE="$(rfc_email_date)"
1919
ENDTIME="$(date +%s)"
2020
echo "Finished on: $ENDDATE" | tee -a "$LOGFILE" 2>&1

0 commit comments

Comments
 (0)