Skip to content

Commit

Permalink
Issue #5096 - possible fix for older versions of PHP.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Nov 3, 2023
1 parent e0554f6 commit fe3c259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e107_handlers/Shims/Internal/StrftimeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ protected static function date_format($datetime, $format)
self::getSensibleLocale(),
\IntlDateFormatter::NONE,
\IntlDateFormatter::NONE,
$timezone, // More accurate timezone. @see https://stackoverflow.com/questions/31707395/why-php-intldateformatter-returns-wrong-date-1-hour
null, // More accurate timezone. @see https://stackoverflow.com/questions/31707395/why-php-intldateformatter-returns-wrong-date-1-hour
null,
$format
);

// datefmt_set_timezone($formatter, $timezone);
datefmt_set_timezone($formatter, $timezone);

return $formatter->format($datetime);
}
Expand Down

0 comments on commit fe3c259

Please sign in to comment.