u 3 years ago
parent
commit
3f2303dbab
  1. 4
      core.go

4
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 {

Loading…
Cancel
Save