diff --git a/modules/issuetracker/classes/svn.class.php b/modules/issuetracker/classes/svn.class.php index 497de8b81..21d7f540e 100644 --- a/modules/issuetracker/classes/svn.class.php +++ b/modules/issuetracker/classes/svn.class.php @@ -347,8 +347,12 @@ function getDateStr($format, $str) { if(strtotime($str)===-1 || strtotime($str)===false) { - $t = str_replace(array('-','T',':','.',' '),'',trim($str)); - return zdate($t, $format); + $type = substr($GLOBALS['_time_zone'],0,1); + $hour = substr($GLOBALS['_time_zone'],1,2); + $min = substr($GLOBALS['_time_zone'],3,2); + $g = $hour*60*60 + $min * 60; + $t = ztime(str_replace(array('-','T',':','.',' '),'',trim($str)))+$g; + return date($format, $t); } else { return date($format, strtotime(trim($str))); }