Skip to content

Commit dca933e

Browse files
author
Bastien Abadie
committed
frontend: Fix getMonth usage.
1 parent 49e0b74 commit dca933e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ 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+
let month = date.getMonth() + 1;
20+
return date.getDate() + '/' + month + '/' + date.getFullYear();
2021
}
2122

2223
var data = {

0 commit comments

Comments
 (0)