-Redused time for online sync
-Fix dish name for TopDishes
This commit is contained in:
miroman-afk
2022-01-26 20:56:40 +03:00
parent 3894932e4c
commit 284d2bcb60
4 changed files with 12 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ class POSTRestoreShift extends HRCCommand implements HRCCommandInterface {
$baseTime = date_create($terminal_online['next_at']);
$baseTime = date_format($baseTime, 'U');
$old_date = date_create($terminal_online['next_at']);
date_modify($old_date, '+1 hour');
date_modify($old_date, '+30 minutes');
$new_date = date_format($old_date, 'Y-m-d H:i:s');
$newTime = $nowTime + ($terminal_online['period'] * 60);
if ($newTime >= $baseTime) {