diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-25 22:36:12 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-25 22:36:12 +0300 |
commit | 7725ce6cc8148ed01ec7c8ca71e254356c234b6b (patch) | |
tree | 05ec4949c67b918bd5492cce64d468a89650dd82 /include | |
parent | e20ef13b48bb4793e3001030490dd80f249c2fda (diff) |
Use a common date/time format for log entries
Diffstat (limited to 'include')
-rw-r--r-- | include/functions | 2 |
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 } |