Skip to content

Commit

Permalink
fixes weird standard time switch error: github.com/adhocore/gronx/iss…
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-at-startupmedia committed Nov 3, 2024
1 parent 216a4be commit 5db999a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module cheek-turner
go 1.21

require (
github.com/adhocore/gronx v1.8.1
github.com/adhocore/gronx v1.19.3
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
github.com/glebarez/go-sqlite v1.22.0
github.com/hashicorp/consul/api v1.28.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/adhocore/gronx v1.8.1 h1:F2mLTG5sB11z7vplwD4iydz3YCEjstSfYmCrdSm3t6A=
github.com/adhocore/gronx v1.8.1/go.mod h1:7oUY1WAU8rEJWmAxXR2DN0JaO4gi9khSgKjiRypqteg=
github.com/adhocore/gronx v1.19.3 h1:BNl3pGgiKy12Tt1dNIhzEGL2l+KikeV6NN3A/B2AJLg=
github.com/adhocore/gronx v1.19.3/go.mod h1:7oUY1WAU8rEJWmAxXR2DN0JaO4gi9khSgKjiRypqteg=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
Expand Down
1 change: 1 addition & 0 deletions pkg/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func (j *JobSpec) loadRunsFromDb(nruns int, includeLogs bool) {

func (j *JobSpec) setNextTick(refTime time.Time, includeRefTime bool) error {
if j.Cron != "" {
refTime, _ = time.Parse(time.RFC3339, refTime.Format(time.RFC3339))
t, err := gronx.NextTickAfter(j.Cron, refTime, includeRefTime)
j.nextTick = t
return err
Expand Down

0 comments on commit 5db999a

Please sign in to comment.