aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handlers.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-05 22:01:08 +0900
committernsfisis <nsfisis@gmail.com>2024-08-05 22:01:08 +0900
commitdff6cfdc04fb7c93f74a53787539702cf6b982a9 (patch)
treebdb238c530826b6545f7208b0e4bb75051ebb446 /backend/admin/handlers.go
parentb0ff29a3c88bd3014cc966c619683c8d7e33d703 (diff)
parenta5eaed753368a1fa701a0503dcb6522e19ccbcb0 (diff)
downloadiosdc-japan-2024-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.tar.gz
iosdc-japan-2024-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.tar.zst
iosdc-japan-2024-albatross-dff6cfdc04fb7c93f74a53787539702cf6b982a9.zip
Merge branch 'fix/multiplayer'
Diffstat (limited to 'backend/admin/handlers.go')
-rw-r--r--backend/admin/handlers.go6
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")
}