In versions 2.0 RC1g and below, there is a bug in function convert_date() (bb_functions.php), which doesn't correct (by $timeDiff) non english date. The modified function:
function convert_date($dateR){ $engMon=array('January','February','March','April','May','June','July' ,'August','September','October','November','December'); $months=explode (':', $GLOBALS['l_months']); //$months[]=' '; //if(isset($GLOBALS['timeDiff']) and $timeDiff!=0) $dateR=date($GLOBALS['dateFormat'],strtotime($dateR)+$GLOBALS['timeDif f']); //else $dateR=date($GLOBALS['dateFormat'],strtotime($dateR)); if (isset($GLOBALS['timeDiff'] ) and ($GLOBALS['timeDiff']!=0)) { $dateR=str_replace($months,$engMon,$dateR); $dateR=date($GLOBALS['dateFormat'],strtotime($dateR)+$GLOBALS['timeDif f']); $dateR=str_replace($engMon,$months,$dateR); } return $dateR; } |