Skip to content

Commit 01ccd7d

Browse files
committed
refactor: fix variable type
1 parent 76edbf4 commit 01ccd7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Email/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ protected function setDate()
898898
{
899899
$timezone = date('Z');
900900
$operator = ($timezone[0] === '-') ? '-' : '+';
901-
$timezone = abs($timezone);
901+
$timezone = abs((int) $timezone);
902902
$timezone = floor($timezone / 3600) * 100 + ($timezone % 3600) / 60;
903903

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

0 commit comments

Comments
 (0)