mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix homework edit time format
This commit is contained in:
1 parent
0c277f2224
commit
7ddd2077e7
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.11.20",
|
||||
"version": "3.11.21",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -134,9 +134,9 @@ class HomeworkEditHandler extends Handler {
|
||||
this.response.body = {
|
||||
tdoc,
|
||||
dateBeginText: beginAt.format('YYYY-M-D'),
|
||||
timeBeginText: beginAt.format('hh:mm'),
|
||||
timeBeginText: beginAt.format('H:mm'),
|
||||
datePenaltyText: penaltySince.format('YYYY-M-D'),
|
||||
timePenaltyText: penaltySince.format('hh:mm'),
|
||||
timePenaltyText: penaltySince.format('H:mm'),
|
||||
extensionDays,
|
||||
penaltyRules: tid ? yaml.dump(tdoc.penaltyRules) : null,
|
||||
pids: tid ? tdoc.pids.join(',') : '',
|
||||
|
||||
Reference in new issue
Block a user