-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tried so hard #50
Comments
version is: github.com/adhocore/gronx v1.8.1 |
Update: The following modification fixes the issue: 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
}
return nil
}
|
hello Joe, thanks for reporting issue. first, could you check if latest version is working? |
At the time of the issue, I had cecked if upgrading to the latest verion of gronx fixed the issue: it did not. In my ability to replicate on an isolated environment, I could not replicate because the now function was not producing the following format:
While checking the docs for the std time package, I could not find a name for that format, nor was I able to successfully parse a string from that format into a new time instance without errors. At this point, the issue may not be replicable on a revert from my fix above due to the rollover to standard time, but I will try it later and provide an update. |
checking out the commit before my fix above, no longer produces the error as I had suspected. And the code is still producing the following format:
Commit: I'd be of more service if I knew how to parse this format without errors. In order to replicate the issue, the time has to go back to the following:
|
I started getting this error last night. My suspicion is that it may be related to standard time switchover? Nothing has been changed with the code nor the configuration for months.
Code:
Couple instance of failures:
The same code works for other instances:
The text was updated successfully, but these errors were encountered: