Skip to content

Commit 5db999a

Browse files
fixes weird standard time switch error: github.com/adhocore/gronx/issues/50
1 parent 216a4be commit 5db999a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module cheek-turner
33
go 1.21
44

55
require (
6-
github.com/adhocore/gronx v1.8.1
6+
github.com/adhocore/gronx v1.19.3
77
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
88
github.com/glebarez/go-sqlite v1.22.0
99
github.com/hashicorp/consul/api v1.28.2

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
22
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
33
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
4-
github.com/adhocore/gronx v1.8.1 h1:F2mLTG5sB11z7vplwD4iydz3YCEjstSfYmCrdSm3t6A=
5-
github.com/adhocore/gronx v1.8.1/go.mod h1:7oUY1WAU8rEJWmAxXR2DN0JaO4gi9khSgKjiRypqteg=
4+
github.com/adhocore/gronx v1.19.3 h1:BNl3pGgiKy12Tt1dNIhzEGL2l+KikeV6NN3A/B2AJLg=
5+
github.com/adhocore/gronx v1.19.3/go.mod h1:7oUY1WAU8rEJWmAxXR2DN0JaO4gi9khSgKjiRypqteg=
66
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
77
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
88
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=

pkg/job.go

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func (j *JobSpec) loadRunsFromDb(nruns int, includeLogs bool) {
250250

251251
func (j *JobSpec) setNextTick(refTime time.Time, includeRefTime bool) error {
252252
if j.Cron != "" {
253+
refTime, _ = time.Parse(time.RFC3339, refTime.Format(time.RFC3339))
253254
t, err := gronx.NextTickAfter(j.Cron, refTime, includeRefTime)
254255
j.nextTick = t
255256
return err

0 commit comments

Comments
 (0)