summaryrefslogtreecommitdiffstats
path: root/node.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-27 13:21:49 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-27 13:21:49 +0200
commit80d33f6454e386da21772fbf11b86e0ddeba18b9 (patch)
treea97e7b2593c6efe7922600ce0f4560aaa2ded3d3 /node.d
parent256adda1eb3687ca9662ace3eb27b3368cbdd0b9 (diff)
node fullyear should be printed in full
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 abf777b17d..e924c0db0e 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.getDate())
+ return d.getFullYear().toString() + '-' + this.zeropad2(d.getMonth()) + '-' + this.zeropad2(d.getDate())
+ ' ' + this.zeropad2(d.getHours()) + ':' + this.zeropad2(d.getMinutes()) + ':' + this.zeropad2(d.getSeconds());
},