From 64233d21890da61b4052f4ffd6bc34e4a83f5bc6 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 29 Aug 2010 07:06:20 +0000 Subject: - Fix timezone string in sent mail (#1486961) --- program/steps/mail/func.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index a87b7848b..1509f9028 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1602,7 +1602,8 @@ function rcmail_user_date() $date = time() + $tz * 60 * 60; $date = gmdate('r', $date); - $date = preg_replace('/[+-][0-9]{4}$/', sprintf('%+05d', $tz * 100), $date); + $tz = sprintf('%+05d', intval($tz) * 100 + ($tz - intval($tz)) * 60); + $date = preg_replace('/[+-][0-9]{4}$/', $tz, $date); return $date; } -- cgit v1.2.3