]> arthur.barton.de Git - netdata.git/commitdiff
fix node.js date of month logging; fixes #1287
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:12:30 +0000 (13:12 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 27 Nov 2016 11:12:30 +0000 (13:12 +0200)
node.d/node_modules/netdata.js

index 572e639beee9a69b88fc6f721c86675a62150408..abf777b17d9dc6087713d0072738a96c3fc5487b 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.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());
     },