]> arthur.barton.de Git - netdata.git/commitdiff
node fullyear should be printed in full
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:21:49 +0000 (13:21 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:21:49 +0000 (13:21 +0200)
node.d/node_modules/netdata.js

index abf777b17d9dc6087713d0072738a96c3fc5487b..e924c0db0e1647fee500b70e0eb885829b2de4fb 100644 (file)
@@ -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());
     },