summaryrefslogtreecommitdiffstats
path: root/node.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-27 13:12:30 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-27 13:12:30 +0200
commit256adda1eb3687ca9662ace3eb27b3368cbdd0b9 (patch)
treefe0745c9b5257d6c01b03258774281ab85108c18 /node.d
parent2c9e84f0f17ae77d8a4939b3bcb9c3be63604da4 (diff)
fix node.js date of month logging; fixes #1287
Diffstat (limited to 'node.d')
-rw-r--r--node.d/node_modules/netdata.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.d/node_modules/netdata.js b/node.d/node_modules/netdata.js
index 572e639bee..abf777b17d 100644
--- a/node.d/node_modules/netdata.js
+++ b/node.d/node_modules/netdata.js
@@ -139,7 +139,7 @@ var netdata = {
logdate: function(d) {
if(typeof d === 'undefined') d = new Date();
- return this.zeropad2(d.getFullYear()) + '-' + this.zeropad2(d.getMonth()) + '-' + this.zeropad2(d.getDay())
+ return this.zeropad2(d.getFullYear()) + '-' + this.zeropad2(d.getMonth()) + '-' + this.zeropad2(d.getDate())
+ ' ' + this.zeropad2(d.getHours()) + ':' + this.zeropad2(d.getMinutes()) + ':' + this.zeropad2(d.getSeconds());
},