Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-05-25 22:36:12 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-05-25 22:36:12 +0300
commit7725ce6cc8148ed01ec7c8ca71e254356c234b6b (patch)
tree05ec4949c67b918bd5492cce64d468a89650dd82 /include
parente20ef13b48bb4793e3001030490dd80f249c2fda (diff)
Use a common date/time format for log entries
Diffstat (limited to 'include')
-rw-r--r--include/functions2
1 files changed, 1 insertions, 1 deletions
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
}