Skip to content

Commit

Permalink
Fix Judge submitTime
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Sep 29, 2024
1 parent 06aaf7a commit 3ef2bc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/display/JudgeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const JudgeTable: React.FC<JudgeTableProps> = (props) => {
<LanguageIcon language={judge.language} />
</div>
</td>
<td>{new Date(judge.submitTime).toLocaleString()}</td>
<td>{new Date(judge.createAt).toLocaleString()}</td>
<td>
<div
className={joinClasses(
Expand Down
6 changes: 3 additions & 3 deletions src/mocks/data/judge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main() {
}`,
status: "finished",
verdict: "Accepted",
submitTime: "2021-09-01T00:00:00Z",
createAt: "2024-09-29T17:55:05.477643+08:00",
},
{
UID: "6d0355d3-cf5c-4615-a6cc-6973c948cacf",
Expand All @@ -44,7 +44,7 @@ int main() {
print(a - b)`,
status: "finished",
verdict: "WrongAnswer",
submitTime: "2021-09-01T00:00:00Z",
createAt: "2024-09-29T17:55:05.477643+08:00",
},
{
UID: "e54456cc-313b-4af0-b836-22414d4571ae",
Expand All @@ -68,6 +68,6 @@ const rl = readline.createInterface({
});`,
status: "finished",
verdict: "CompileError",
submitTime: "2021-09-01T00:00:00Z",
createAt: "2024-09-29T17:55:05.477643+08:00",
},
];
2 changes: 1 addition & 1 deletion src/models/service/judge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface JudgeInfo {
code: string;
status: string;
verdict: string;
submitTime: string;
createAt: string;
}

export interface RunJudgeRequest {
Expand Down

0 comments on commit 3ef2bc4

Please sign in to comment.