From 7725ce6cc8148ed01ec7c8ca71e254356c234b6b Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 25 May 2016 21:36:12 +0200 Subject: [PATCH] Use a common date/time format for log entries --- include/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions b/include/functions index de37d27a..d0e2c3d0 100644 --- a/include/functions +++ b/include/functions @@ -1270,7 +1270,7 @@ ################################################################################ LogText() { - if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+[%H:%M:%S]"`; echo "${CDATE} $1" >> ${LOGFILE}; fi + if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+%Y-%m-%d %H:%M:%S"`; echo "${CDATE} $1" >> ${LOGFILE}; fi }