Specify times for SQLite database. #1192

This commit is contained in:
James Cole
2018-02-20 17:17:14 +01:00
parent 4e6afd5afc
commit 9d457787f7
3 changed files with 17 additions and 17 deletions

View File

@@ -595,7 +595,7 @@ class JournalCollector implements JournalCollectorInterface
{
if ($start <= $end) {
$startStr = $start->format('Y-m-d 00:00:00');
$endStr = $end->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', '<=', $endStr);
Log::debug(sprintf('JournalCollector range is now %s - %s (inclusive)', $startStr, $endStr));