From 016c1c3fb9c6b19b45091e256440716cac314144 Mon Sep 17 00:00:00 2001 From: public_host Date: Wed, 15 Jul 2020 15:37:54 +0800 Subject: [PATCH] fix --- core.go | 3 +++ 1 file changed, 3 insertions(+) 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)