mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"name": "hydrooj",
|
||||||
"version": "3.11.20",
|
"version": "3.11.21",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -134,9 +134,9 @@ class HomeworkEditHandler extends Handler {
|
|||||||
this.response.body = {
|
this.response.body = {
|
||||||
tdoc,
|
tdoc,
|
||||||
dateBeginText: beginAt.format('YYYY-M-D'),
|
dateBeginText: beginAt.format('YYYY-M-D'),
|
||||||
timeBeginText: beginAt.format('hh:mm'),
|
timeBeginText: beginAt.format('H:mm'),
|
||||||
datePenaltyText: penaltySince.format('YYYY-M-D'),
|
datePenaltyText: penaltySince.format('YYYY-M-D'),
|
||||||
timePenaltyText: penaltySince.format('hh:mm'),
|
timePenaltyText: penaltySince.format('H:mm'),
|
||||||
extensionDays,
|
extensionDays,
|
||||||
penaltyRules: tid ? yaml.dump(tdoc.penaltyRules) : null,
|
penaltyRules: tid ? yaml.dump(tdoc.penaltyRules) : null,
|
||||||
pids: tid ? tdoc.pids.join(',') : '',
|
pids: tid ? tdoc.pids.join(',') : '',
|
||||||
|
|||||||
Reference in new issue
Block a user