Skip to content

Commit

Permalink
Rephrase the still supported calculation to make it clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed May 31, 2023
1 parent 955f859 commit 26f16a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def main():
end_of_life_date = datetime.date.fromisoformat(release_data["end"])
# The GHES version is not actually end of life until the end of the day specified by
# `end_of_life_date`. Wait an extra week to be safe.
if end_of_life_date > datetime.date.today() - datetime.timedelta(weeks=1):
is_end_of_life = datetime.date.today() > end_of_life_date + datetime.timedelta(weeks=1)
if not is_end_of_life:
oldest_supported_release = release_version

api_compatibility_data = {
Expand Down

0 comments on commit 26f16a5

Please sign in to comment.