]> arthur.barton.de Git - netdata.git/commitdiff
node month is zero based
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:23:14 +0000 (13:23 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:23:14 +0000 (13:23 +0200)
node.d/node_modules/netdata.js

index e924c0db0e1647fee500b70e0eb885829b2de4fb..992da481c24c094d417401e884d06ec7325e2d85 100644 (file)
@@ -139,7 +139,7 @@ var netdata = {
 
     logdate: function(d) {
         if(typeof d === 'undefined') d = new Date();
-        return d.getFullYear().toString() + '-' + this.zeropad2(d.getMonth()) + '-' + this.zeropad2(d.getDate())
+        return d.getFullYear().toString() + '-' + this.zeropad2(d.getMonth() + 1) + '-' + this.zeropad2(d.getDate())
             + ' ' + this.zeropad2(d.getHours()) + ':' + this.zeropad2(d.getMinutes()) + ':' + this.zeropad2(d.getSeconds());
     },