Skip to content

Commit

Permalink
fix : Fix the time display issue, js months start from 0 ??
Browse files Browse the repository at this point in the history
  • Loading branch information
pojol committed Jul 3, 2023
1 parent f133af4 commit 8d13a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/src/pages/report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function TestReport() {
for (var i = 0; i < info.length; i++) {

var date = new Date(info[i].BeginTime * 1000);
var convdataTime = date.getFullYear() + '-' + date.getMonth() + '-' + date.getDate() + ' ' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();
var convdataTime = date.getFullYear() + '-' + (date.getMonth()+1).toString() + '-' + date.getDate() + ' ' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();

newdata.push({
key: info[i].ID,
Expand Down

0 comments on commit 8d13a91

Please sign in to comment.