From ada64bba0c3314f2d487dbad687b52ad07ad2e21 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 18 Jul 2020 12:22:43 +0300 Subject: [PATCH] fix dayOfWeek --- .../Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php b/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php index da423f8c8a..6f762b5751 100644 --- a/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php +++ b/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php @@ -62,9 +62,9 @@ class DayOfWeekType extends \Espo\Core\Formula\Functions\Base if (empty($value)) return -1; if (strlen($value) > 11) { - $resultString = $this->getInjection('dateTime')->convertSystemDateTime($value, $timezone, 'e'); + $resultString = $this->getInjection('dateTime')->convertSystemDateTime($value, $timezone, 'd'); } else { - $resultString = $this->getInjection('dateTime')->convertSystemDate($value, 'e'); + $resultString = $this->getInjection('dateTime')->convertSystemDate($value, 'd'); } $result = intval($resultString);