diff --git a/remote_judger/Dockerfile b/remote_judger/Dockerfile index 5587f77..f7ef086 100644 --- a/remote_judger/Dockerfile +++ b/remote_judger/Dockerfile @@ -9,4 +9,5 @@ COPY . . RUN npm run build +ENV LANG=C.UTF-8 TZ="Asia/Shanghai" CMD [ "node", "--experimental-specifier-resolution=node", "dist/entrypoint.js" ] diff --git a/remote_judger/src/providers/loj.ts b/remote_judger/src/providers/loj.ts index 0c1be6f..446f907 100644 --- a/remote_judger/src/providers/loj.ts +++ b/remote_judger/src/providers/loj.ts @@ -462,7 +462,9 @@ export default class LibreojProvider implements IBasicProvider { '
Problem: #${body.meta.problem.displayId}. ${body.meta.problemTitle}
` + `Remote submission: ${id}
` + - `Remote submit time: ${body.meta.submitTime}
` + + `Remote submit time: ${new Date( + body.meta.submitTime + ).toLocaleString('zh-CN')}
` + `Remote account: ${body.meta.submitter.username}
` + `Verdict: ${status}
` + 'Problem: ${data.problem.pid} ${data.problem.title}
` + + `Remote submission: R${id}
` + + `Remote submit time: ${new Date( + data.submitTime * 1000 + ).toLocaleString('zh-CN')}
` + + `Remote account: ${data.user.name}
` + + `Verdict: ${status}
` + + '