]> git.agnieray.net Git - galette.git/commitdiff
Fix transactions filtering on non english dates
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 23 Oct 2023 12:45:25 +0000 (14:45 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 23 Oct 2023 12:45:25 +0000 (14:45 +0200)
clsoes #1731

galette/lib/Galette/Repository/Transactions.php

index 7a34ccce344493597430a5adb8f1a3ff75cac469..cdc3abb9a1b64a0ec3500412c52f05cfa13bae35 100644 (file)
@@ -250,7 +250,7 @@ class Transactions
     {
         try {
             if ($this->filters->start_date_filter != null) {
-                $d = new \DateTime($this->filters->start_date_filter);
+                $d = new \DateTime($this->filters->rstart_date_filter);
                 $select->where->greaterThanOrEqualTo(
                     'trans_date',
                     $d->format('Y-m-d')
@@ -258,7 +258,7 @@ class Transactions
             }
 
             if ($this->filters->end_date_filter != null) {
-                $d = new \DateTime($this->filters->end_date_filter);
+                $d = new \DateTime($this->filters->rend_date_filter);
                 $select->where->lessThanOrEqualTo(
                     'trans_date',
                     $d->format('Y-m-d')