mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3330
This commit is contained in:
@@ -91,8 +91,9 @@ trait TimeCollection
|
|||||||
if ($end < $start) {
|
if ($end < $start) {
|
||||||
[$start, $end] = [$end, $start];
|
[$start, $end] = [$end, $start];
|
||||||
}
|
}
|
||||||
$startStr = $start->format('Y-m-d H:i:s');
|
// always got to end of day / start of day for ranges.
|
||||||
$endStr = $end->format('Y-m-d H:i:s');
|
$startStr = $start->format('Y-m-d 00:00:00');
|
||||||
|
$endStr = $end->format('Y-m-d 23:59:59');
|
||||||
|
|
||||||
$this->query->where('transaction_journals.date', '>=', $startStr);
|
$this->query->where('transaction_journals.date', '>=', $startStr);
|
||||||
$this->query->where('transaction_journals.date', '<=', $endStr);
|
$this->query->where('transaction_journals.date', '<=', $endStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user