Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,11 @@ public static function findTemporalGapsInTable(string $table, DateTimeInterface
'date AS `end`'
],
'FROM' => $records_query,
'WHERE' => array_merge($boundaries, [
'WHERE' => [
'NOT' => ['prev_date' => null],
// new QueryExpression('TIMESTAMPDIFF(SECOND, `records`.`prev_date`, `records`.`date`) > ' . $interval_in_seconds)
new QueryExpression('DATE_ADD(`records`.`prev_date`, ' . $sql_interval . ') < `date`')
]),
],
],

// Gap before the beginning of the serie
Expand Down