Skip to content

Commit

Permalink
Update TimeHelper.php to Respect Timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-s authored Jul 31, 2024
1 parent a8b4627 commit 9b41aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/TimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function userFormat($date, ?string $format = null, $invalid = false, $tim
}
$date->setTimezone($timezone);

return $date->i18nFormat($format);
return $date->i18nFormat($format, $timezone);
} catch (Exception $e) {
if ($invalid === false) {
throw $e;
Expand Down

0 comments on commit 9b41aa1

Please sign in to comment.