Skip to content

Commit

Permalink
Hotfix to fix inaccurate time
Browse files Browse the repository at this point in the history
  • Loading branch information
LioQing committed Jul 28, 2024
1 parent a2409d1 commit 6689639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/CourseTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CourseTime {
static timeFromExcel(data: any): Date {
if (typeof data === 'number') {
let date = new Date(1970, 1, 1);
date.setMilliseconds(data * 86400000);
date.setMilliseconds(data * 86400000 + 1000);
return date;
}
return new Date(`1970-01-01T${data}`);
Expand Down

0 comments on commit 6689639

Please sign in to comment.