Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Commit a6b7b03

Browse files
authored
Fix getMonth usage. (#85)
1 parent ae3901c commit a6b7b03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ async function graphHistory(history, path) {
1010

1111
let dateStr = function(timestamp){
1212
let date = new Date(timestamp);
13-
return date.getDate() + '/' + date.getMonth() + '/' + date.getFullYear();
13+
let month = date.getMonth() + 1;
14+
return date.getDate() + '/' + month + '/' + date.getFullYear();
1415
}
1516

1617
var data = {

0 commit comments

Comments
 (0)