Skip to content

Commit 5e106b5

Browse files
authored
frontend: Fix getMonth usage. (#89)
1 parent d35e615 commit 5e106b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function graphHistory(history, path) {
1616

1717
let dateStr = function(timestamp){
1818
let date = new Date(timestamp);
19-
return date.getDate() + '/' + date.getMonth() + '/' + date.getFullYear();
19+
return `${date.getDate()}/${date.getMonth() + 1}/${date.getFullYear()}`;
2020
}
2121

2222
var data = {

0 commit comments

Comments
 (0)