From 7d39b818240a6ce430aceee972b2cf6e33a8d44f Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 26 Dec 2021 17:08:35 +0800 Subject: [PATCH] update --- calendar/api_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/api_event.go b/calendar/api_event.go index 4464d69..629d994 100644 --- a/calendar/api_event.go +++ b/calendar/api_event.go @@ -62,7 +62,7 @@ func ApiEventNew(c *gin.Context) { if e.ID != "" { panic(errors.ErrorBadRequest) } - if e.Start.IsZero() || e.End.IsZero() || e.Start.Before(e.End) { + if e.Start.IsZero() || e.End.IsZero() || e.End.Before(e.Start) { panic(ErrorInvalidTime) } cal := 0