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 45661f4 commit e0554f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e107_handlers/Shims/Internal/StrftimeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected static function date_format($datetime, $format)
}


$timezone = 'GMT'.date('O');
$timezone = 'GMT'.date('P');
$formatter = new \IntlDateFormatter(
self::getSensibleLocale(),
\IntlDateFormatter::NONE,
Expand All @@ -76,6 +76,8 @@ protected static function date_format($datetime, $format)
$format
);

// datefmt_set_timezone($formatter, $timezone);

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

Expand Down

0 comments on commit e0554f6

Please sign in to comment.