From 720ab42d3cd0fcf09b656c57060cef652b6b0abd Mon Sep 17 00:00:00 2001 From: u Date: Tue, 24 Aug 2021 15:43:20 +0800 Subject: [PATCH] fix --- core.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core.go b/core.go index fb69ac7..e14dcc5 100644 --- a/core.go +++ b/core.go @@ -127,7 +127,7 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { return true } - tfdate := t.Format("2006-01-02") + tfdate := t.Format("2006-01-02 15:04:05") tmp, _ := json.Marshal(ta.TimesOnDay) mainKey := fmt.Sprintf("[%s][%s]", tfdate, string(tmp)) @@ -135,7 +135,6 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { value, ok := isInTimeOfDayCacheBool.Load(mainKey) if ok { ret := value.(int) - if ret == 3 { return true }