Skip to content
Snippets Groups Projects
Commit da406b26 authored by Demian Katz's avatar Demian Katz
Browse files

Add last_pickup_date support to Demo driver.

parent ce6d672a
No related merge requests found
......@@ -463,6 +463,11 @@ class Demo extends AbstractBase
$currentItem['position'] = $pos;
} else {
$currentItem['available'] = true;
if (rand() % 3 != 1) {
$lastDate = strtotime('now + 3 days');
$currentItem['last_pickup_date'] = $this->dateConverter
->convertToDisplayDate('U', $lastDate);
}
}
$pos = rand(0, count($requestGroups) - 1);
$currentItem['requestGroup'] = $requestGroups[$pos]['name'];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment