Closed jleben closed 4 years ago
Hmm, looking at the code, I see it only compares the current day of previous time and now. This logic works as long as the configuration of the resource never changes since in that case one expects at most one trigger a day. However, if one changes the configuration, then Concourse might have a cached version that's less than a day ago since the start of the new configuration.
This is fixed by my PR: https://github.com/concourse/time-resource/pull/27
Here are steps to reproduce the issue:
Prepare file named
test-in
with the following contents (note thattime
is earlier thanstart
)Current UTC time is between start and stop:
Checking the resource does not produce a new version:
However, changing the input time to one day earlier does:
It appears the comparison of start with respect to the input time is off by 1 hour. Observe the following:
Current time in Vancouver is:
2018-03-25T18:34:34-07:00
The following input produces a new version:
However, changing the input time to one minute later
2018-03-25T17:00:00-07:00
does not produce a new version.