diff --git a/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php b/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php index 9294ed53fe..b2508508d3 100644 --- a/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php +++ b/application/Espo/Core/Formula/Functions/DatetimeGroup/DayOfWeekType.php @@ -58,9 +58,9 @@ class DayOfWeekType extends BaseFunction implements Di\DateTimeAware if (empty($value)) return -1; if (strlen($value) > 11) { - $resultString = $this->dateTime->convertSystemDateTime($value, $timezone, 'e'); + $resultString = $this->dateTime->convertSystemDateTime($value, $timezone, 'd'); } else { - $resultString = $this->dateTime->convertSystemDate($value, 'e'); + $resultString = $this->dateTime->convertSystemDate($value, 'd'); } $result = intval($resultString);