Skip to content

Commit

Permalink
Add var statement to formattedDate variable.
Browse files Browse the repository at this point in the history
Was experiencing an issue on io.js with --use_strict that was causing this line to error. Adding the var statement should fix the problem.
  • Loading branch information
AJCStriker committed Apr 29, 2015
1 parent 34f9378 commit 734b9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/glossy/produce.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function generateDate(dateObject) {


// Date
formattedDate = dateObject.getUTCFullYear() + '-' +
var formattedDate = dateObject.getUTCFullYear() + '-' +
// N.B. Javascript Date objects return months of the year indexed from
// zero, while the RFC 5424 syslog standard expects months indexed from
// one.
Expand Down

0 comments on commit 734b9c8

Please sign in to comment.