|
@ -126,6 +126,11 @@ class TripComplete extends Job implements SelfHandling, ShouldQueue |
|
|
$endDate->setTimeZone(new DateTimeZone($end->timezone)); |
|
|
$endDate->setTimeZone(new DateTimeZone($end->timezone)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if($endDate->format('U') - $startDate->format('U') < 15) { |
|
|
|
|
|
Log::info("Skipping trip since it was too short"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$params = [ |
|
|
$params = [ |
|
|
'h' => 'entry', |
|
|
'h' => 'entry', |
|
|
'published' => $endDate->format('c'), |
|
|
'published' => $endDate->format('c'), |
|
|