mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17: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
@@ -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