diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-05 22:01:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-05 22:01:08 +0900 |
| commit | dff6cfdc04fb7c93f74a53787539702cf6b982a9 (patch) | |
| tree | bdb238c530826b6545f7208b0e4bb75051ebb446 /backend/admin/handlers.go | |
| parent | b0ff29a3c88bd3014cc966c619683c8d7e33d703 (diff) | |
| parent | a5eaed753368a1fa701a0503dcb6522e19ccbcb0 (diff) | |
| download | phperkaigi-2025-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.tar.gz phperkaigi-2025-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.tar.zst phperkaigi-2025-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.zip | |
Merge branch 'fix/multiplayer'
Diffstat (limited to 'backend/admin/handlers.go')
| -rw-r--r-- | backend/admin/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/admin/handlers.go b/backend/admin/handlers.go index d9a6977..d445de8 100644 --- a/backend/admin/handlers.go +++ b/backend/admin/handlers.go @@ -126,7 +126,7 @@ func (h *AdminHandler) getGames(c echo.Context) error { for i, g := range rows { var startedAt string if !g.StartedAt.Valid { - startedAt = g.StartedAt.Time.In(jst).Format("2006-01-02T15:04:05") + startedAt = g.StartedAt.Time.In(jst).Format("2006-01-02T15:04") } games[i] = echo.Map{ "GameID": g.GameID, @@ -161,7 +161,7 @@ func (h *AdminHandler) getGameEdit(c echo.Context) error { var startedAt string if !row.StartedAt.Valid { - startedAt = row.StartedAt.Time.In(jst).Format("2006-01-02T15:04:05") + startedAt = row.StartedAt.Time.In(jst).Format("2006-01-02T15:04") } return c.Render(http.StatusOK, "game_edit", echo.Map{ @@ -214,7 +214,7 @@ func (h *AdminHandler) postGameEdit(c echo.Context) error { { startedAtRaw := c.FormValue("started_at") if startedAtRaw != "" { - startedAtTime, err := time.Parse("2006-01-02T15:04:05", startedAtRaw) + startedAtTime, err := time.Parse("2006-01-02T15:04", startedAtRaw) if err != nil { return echo.NewHTTPError(http.StatusBadRequest, "Invalid started_at") } |
