Skip to content

Commit 255d3bf

Browse files
author
Bohdan Korablov
committed
MAGETWO-94196: [2.1] The fix of incorrect date format was lost since 2.1.13
1 parent aabe2bc commit 255d3bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function date($date = null, $locale = null, $useTimezone = true, $include
192192
* @param bool $includeTime
193193
* @return string
194194
*/
195-
private function prepareDate(string $date, string $locale, string $timezone, bool $includeTime)
195+
private function prepareDate($date, $locale, $timezone, $includeTime)
196196
{
197197
$timeType = $includeTime ? \IntlDateFormatter::SHORT : \IntlDateFormatter::NONE;
198198
$formatter = new \IntlDateFormatter(
@@ -360,7 +360,7 @@ public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s')
360360
* @param string $date
361361
* @return string
362362
*/
363-
private function appendTimeIfNeeded(string $date)
363+
private function appendTimeIfNeeded($date)
364364
{
365365
if (!preg_match('/\d{1,2}:\d{2}/', $date)) {
366366
$date .= " 00:00";

0 commit comments

Comments
 (0)