Skip to content

[Bugfix-795] Fix date comparison edge case#816

Merged
luketomlinson merged 5 commits into
mainfrom
bugfix/795
Sep 12, 2022
Merged

[Bugfix-795] Fix date comparison edge case#816
luketomlinson merged 5 commits into
mainfrom
bugfix/795

Conversation

@luketomlinson

Copy link
Copy Markdown
Collaborator

Changes

  • Fixes an issue where the issue.updatedAt and markedStaleOn dates can be off by a second. This is done by first checking the date for equality (within 15 second tolerance) and then checking if issue.updatedAt comes after the markedStaleOn date.

Context

fixes #795

@luketomlinson luketomlinson requested a review from a team as a code owner September 9, 2022 18:17
@luketomlinson luketomlinson changed the title Bugfix/795 [Bugfix-795] Fix date comparison edge case Sep 9, 2022
@luketomlinson luketomlinson merged commit 8e8a0e6 into main Sep 12, 2022
@luketomlinson luketomlinson deleted the bugfix/795 branch September 12, 2022 13:38
JoannaaKL pushed a commit that referenced this pull request Sep 12, 2022
* Fix updatedAt and markedStaleOn date comparison

* Delete accidental file

* Refactor

* Cleanup

* cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems since moving to v5 - action takes bot comment as a regular update

2 participants