Skip to content

Commit

Permalink
fix(versioning/ubuntu): Postpone offering new releases (#15204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Ladzaretti committed Apr 21, 2022
1 parent e8808f3 commit 8b003e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/modules/versioning/ubuntu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ function isStable(version: string): boolean {
}

const schedule = di.getSchedule(ver);
if (schedule && DateTime.fromISO(schedule.release) > DateTime.now()) {
if (
schedule &&
DateTime.fromISO(schedule.release).toUTC() >
DateTime.now().minus({ days: 1 }).toUTC()
) {
return false;
}

Expand Down

0 comments on commit 8b003e1

Please sign in to comment.