Skip to content

Commit

Permalink
fix(config_builder): set EOL in the current month
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jun 14, 2024
1 parent 2d97ee7 commit fac2936
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/config_builder
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ foreach ($majorVersions as $majorVersion => $info) {
$generatedConfig['daily'][$majorVersion] = [
'downloadUrl' => sprintf('https://download.nextcloud.com/server/daily/latest-%s.zip', $maxMajor === $majorVersion ? 'master' : 'stable'.$majorVersion),
'web' => sprintf($docUrl, $maxMajor === $majorVersion ? 'latest' : $majorVersion),
'eol' => isset($info['eol']) ? ($info['eol'] < $now) : false,
'eol' => isset($info['eol']) ? ($info['eol'] <= $now) : false,
'minPHPVersion' => $info['minPHP'] ?? '7.2',
];
}
Expand Down
2 changes: 1 addition & 1 deletion build/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ function isEol(string $releaseName, array $majorVersion): bool {
return false;
}

return $majorVersion['eol'] < date('Y-m');
return $majorVersion['eol'] <= date('Y-m');
}

0 comments on commit fac2936

Please sign in to comment.