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:
Ralf Becker 2007-09-05 07:50:10 +00:00
parent a4a85097a4
commit 820bb9b592

View File

@ -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;