correct times

This commit is contained in:
Konstantinos Spartalis 2026-05-05 14:33:22 +03:00 committed by GitHub
parent fa15c18d0d
commit bc5eebd81c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,7 +286,7 @@ function core_cron()
$push_time = $config['system']['backup']['settings']['pushtime'] ?? '';
if (!empty($push_time) && preg_match('/^([0-9]{1,2}):([0-9]{1,2})$/', $push_time, $matches)) {
if (!empty($push_time) && preg_match('/^([01]?[0-9]|2[0-3]):([0-5]?[0-9])$/', $push_time, $matches)) {
$cron_hour = (int)$matches[1];
$cron_minute = (int)$matches[2];
}