Wannes пре 9 година
родитељ
комит
d2039e72ea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cron.go

+ 1 - 1
cron.go

@@ -197,7 +197,7 @@ func (c *Cron) run() {
 		}
 		}
 
 
 		// 'now' should be updated after newEntry and snapshot cases.
 		// 'now' should be updated after newEntry and snapshot cases.
-		now = time.Now().Local()
+		now = time.Now().In(c.location)
 	}
 	}
 }
 }