diff --git a/application/Espo/Core/SelectManagers/Base.php b/application/Espo/Core/SelectManagers/Base.php index eb2c38c966..172c272f59 100644 --- a/application/Espo/Core/SelectManagers/Base.php +++ b/application/Espo/Core/SelectManagers/Base.php @@ -962,6 +962,7 @@ class Base case 'after': $where['type'] = 'after'; $dt = new \DateTime($value, new \DateTimeZone($timeZone)); + $dt->modify('+1 day -1 second'); $dt->setTimezone(new \DateTimeZone('UTC')); $where['value'] = $dt->format($format); break;