Compare commits
	
		
			No commits in common. "17d9437a501e58abd7316fedfc206cf8333d5438" and "0d6d152b825df4b4087f31a3185ff92d813fe854" have entirely different histories.
		
	
	
		
			17d9437a50
			...
			0d6d152b82
		
	
		
| @ -102,11 +102,7 @@ class EventRepository | ||||
|     { | ||||
|         $select->where(function (Select $select) use ($from, $days) { | ||||
|             $select->where('start', '<', (clone $from)->add(DateInterval::createFromDateString("$days days"))->format('Y-m-d H:i:s')); | ||||
|             $select->where('end', '>', $from->format('Y-m-d H:i:s')); | ||||
|         }); | ||||
|         $select->orWhere(function (Select $select) use ($from, $days) { | ||||
|             $select->where('end', '>', (clone $from)->sub(DateInterval::createFromDateString("$days days"))->format('Y-m-d H:i:s')); | ||||
|             $select->where('start', '<', $from->format('Y-m-d H:i:s')); | ||||
|             $select->orWhere('end', '>', (clone $from)->sub(DateInterval::createFromDateString("$days days"))->format('Y-m-d H:i:s')); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user