master
Evan Chen 2021-12-26 17:08:35 +08:00
parent 1bb46c638d
commit 7d39b81824
1 changed files with 1 additions and 1 deletions

View File

@ -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