fix for end-of-yesterday
authorSandor Semsey <semseysandor@gmail.com>
Fri, 5 Jun 2020 15:19:34 +0000 (17:19 +0200)
committerSandor Semsey <semseysandor@gmail.com>
Fri, 5 Jun 2020 15:19:34 +0000 (17:19 +0200)
CRM/Utils/Date.php

index 9e4eac33ed88f7b4dde7c60a5e5a41c39c87f2df..831fca5bc8f5cd6397527e191616b7187a04ac39 100644 (file)
@@ -1822,6 +1822,7 @@ class CRM_Utils_Date {
             $to['d'] = $now['mday'];
             $to['M'] = $now['mon'];
             $to['Y'] = $now['year'];
+            $to = self::intervalAdd('day', -1, $to);
             unset($from);
             break;