]);
// Randomize the times of the package list update and robot list update cronjobs.
+$startMinute = \random_int(0, 59);
+$startHour = \random_int(0, 23);
+
$sql = "UPDATE wcf1_cronjob
SET startMinute = ?,
startHour = ?,
AND cronjobName = ?";
$statement = WCF::getDB()->prepare($sql);
$statement->execute([
- \random_int(0, 59),
- \random_int(0, 23),
+ $startMinute,
+ $startHour,
'*',
'*',
'*',
'com.woltlab.wcf.refreshPackageUpdates',
]);
$statement->execute([
- \random_int(0, 59),
- \random_int(0, 23),
+ $startMinute,
+ (($startHour + 12) % 24),
\random_int(1, 15),
'*',
'*',
use wcf\system\WCF;
+$startMinute = \random_int(0, 59);
+$startHour = \random_int(0, 23);
+
$sql = "UPDATE wcf1_cronjob
SET startMinute = ?,
startHour = ?,
AND cronjobName = ?";
$statement = WCF::getDB()->prepare($sql);
$statement->execute([
- \random_int(0, 59),
- \random_int(0, 23),
+ $startMinute,
+ $startHour,
'*',
'*',
'*',
'com.woltlab.wcf.refreshPackageUpdates',
]);
$statement->execute([
- \random_int(0, 59),
- \random_int(0, 23),
+ $startMinute,
+ (($startHour + 12) % 24),
\random_int(1, 15),
'*',
'*',