We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78d5da4 commit fdc210aCopy full SHA for fdc210a
1 file changed
tools/log.sh
@@ -6,15 +6,15 @@ LOGFILE="$CASENAME.log"
6
export LOGFILE
7
8
rfc_email_date() {
9
- date --rfc-email 2>/dev/null || date -u '+%a, %d %b %Y %H:%M:%S %z'
+ date --rfc-email 2>/dev/null || date '+%a, %d %b %Y %H:%M:%S %z'
10
}
11
12
STARTDATE="$(rfc_email_date)"
13
STARTTIME="$(date +%s)"
14
echo "Started on: $STARTDATE" | tee "$CASENAME.log" 2>&1
15
16
close_log() {
17
- echo "Started on: $STARTDATE" | tee -a "$LOGFILE" 2>&1
+ echo "Started on: $STARTDATE" | tee -a "$LOGFILE" 2>&1
18
ENDDATE="$(rfc_email_date)"
19
ENDTIME="$(date +%s)"
20
echo "Finished on: $ENDDATE" | tee -a "$LOGFILE" 2>&1
0 commit comments