Skip to content

Commit

Permalink
refactor: fix variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 22, 2023
1 parent 75ef087 commit ebd7302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Email/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected function setDate()
{
$timezone = date('Z');
$operator = ($timezone[0] === '-') ? '-' : '+';
$timezone = abs($timezone);
$timezone = abs((int) $timezone);
$timezone = floor($timezone / 3600) * 100 + ($timezone % 3600) / 60;

return sprintf('%s %s%04d', date('D, j M Y H:i:s'), $operator, $timezone);
Expand Down

0 comments on commit ebd7302

Please sign in to comment.