mirror of https://github.com/CISOfy/lynis.git
Use a common date/time format for log entries
This commit is contained in:
parent
e20ef13b48
commit
7725ce6cc8
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue