mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
calculation of rfc822 dates was not working with half hour time zones used eg. in Australia, set smtp timeout to 30s, as there are multiple reports 10s is to less
This commit is contained in:
parent
a4a85097a4
commit
820bb9b592
@ -191,7 +191,7 @@ class PHPMailer
|
||||
* work with the win32 version.
|
||||
* @var int
|
||||
*/
|
||||
var $Timeout = 10;
|
||||
var $Timeout = 30;
|
||||
|
||||
/**
|
||||
* Sets SMTP class debugging on or off.
|
||||
@ -1468,7 +1468,7 @@ class PHPMailer
|
||||
$tz = date("Z");
|
||||
$tzs = ($tz < 0) ? "-" : "+";
|
||||
$tz = abs($tz);
|
||||
$tz = ($tz/3600)*100 + ($tz%3600)/60;
|
||||
$tz = (int)($tz/3600)*100 + ($tz%3600)/60;
|
||||
$result = sprintf("%s %s%04d", date("D, j M Y H:i:s"), $tzs, $tz);
|
||||
|
||||
return $result;
|
||||
|
Loading…
Reference in New Issue
Block a user