diff --git a/occupi-backend/pkg/middleware/middleware.go b/occupi-backend/pkg/middleware/middleware.go index 1cc22ecc..3b022498 100644 --- a/occupi-backend/pkg/middleware/middleware.go +++ b/occupi-backend/pkg/middleware/middleware.go @@ -317,7 +317,10 @@ func BlockAfterHours(now time.Time) gin.HandlerFunc { "Forbidden", constants.ForbiddenCode, fmt.Sprintf("Access denied after hours, only allowed between 08:00 and 17:00, time now is %s", now.Format("15:04")), - nil)) + gin.H{ + "serverTime": now.Format("2006-01-02 15:04:05"), + "serverTimezone": timeZone, + })) ctx.Abort() return }