diff --git a/core.go b/core.go index 9cd9810..28ab8d5 100644 --- a/core.go +++ b/core.go @@ -130,6 +130,9 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { log.Println("时间段开始时间格式错误", start) continue } + if end == "24" || end == "24:00" || end == "24:00:00" { + end = "23:59:59" + } endTime, err := time.ParseInLocation("2006-01-02 15:04:05", fmt.Sprintf("%s %s", t.Format("2006-01-02"), end), time.Local) if err != nil { log.Println("时间段结束时间格式错误", end)