Skip to content

Commit

Permalink
Merge pull request #27 from shamil/patch-1
Browse files Browse the repository at this point in the history
Fix wrong date format
  • Loading branch information
TomFrost committed Dec 16, 2016
2 parents 27a3a5b + 9731255 commit 33efe09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatters/syslog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getLogVal = (val) => {
module.exports = (options, severity, date, elems) => {
const sevKey = options.severityKey || DEFAULT_SEVERITY_KEY
const obj = {}
const dateStr = moment(date).format('MMM d HH:mm:ss')
const dateStr = moment(date).format('MMM D HH:mm:ss')
let line = `${dateStr} ${os.hostname()} ${process.title} [${process.pid}]:`
let msg = ''
obj[sevKey] = severity
Expand Down

0 comments on commit 33efe09

Please sign in to comment.