From 3f2303dbabf9f5c2e151832364709dbccea75a15 Mon Sep 17 00:00:00 2001 From: u Date: Tue, 24 Aug 2021 15:34:44 +0800 Subject: [PATCH] fix --- core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.go b/core.go index 88103c1..1347358 100644 --- a/core.go +++ b/core.go @@ -158,7 +158,7 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { startTimeKey := fmt.Sprintf("%s %s", tfdate, start) startTime, ok := parseInLocationCache[startTimeKey] - if !ok { + if false && !ok { startTime, err = time.ParseInLocation("2006-01-02 15:04:05", startTimeKey, time.Local) parseInLocationCache[startTimeKey] = startTime if err != nil { @@ -178,7 +178,7 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { endTimeKey := fmt.Sprintf("%s %s", tfdate, end) endTime, ok := parseInLocationCache[endTimeKey] - if !ok { + if false && !ok { endTime, err = time.ParseInLocation("2006-01-02 15:04:05", endTimeKey, time.Local) parseInLocationCache[endTimeKey] = endTime if err != nil {