Explorar o código

Add location support v2

Wannes %!s(int64=9) %!d(string=hai) anos
pai
achega
d2039e72ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = time.Now().Local()
+		now = time.Now().In(c.location)
 	}
 }