Skip to content

kaylee595/gron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gron

主要是修复时间不正确问题, 官方的版本提了pull request但是不修复.
The main thing is to fix the incorrect time problem, the official version mentions pull request but doesn't fix it.

func (as atSchedule) reset(t time.Time) time.Time {
	return time.Date(t.Year(), t.Month(), t.Day(), as.hh, as.mm, 0, 0, time.Local)  // 将time.UTC修改为time.Local. (Change time.UTC to time.Local.)
}

About

gron, Cron Jobs in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%