mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
correct times
This commit is contained in:
parent
fa15c18d0d
commit
bc5eebd81c
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue