فهرست منبع

Add location support v2

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 = time.Now().Local()
+		now = time.Now().In(c.location)
 	}
 }