Rather my functions.php file is so hacked or this hack is for a specific type of Vb version because the coding is slightly different.
In example:
PHP Code:
2. In admin/functions.php, find:
function vbdate($format,$timestamp) {
global $bbuserinfo,$timeoffset;
return date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
}
I have the following code:
PHP Code:
function vbdate($format,$timestamp) {
global $bbuserinfo,$timeoffset, $dateformat, $timeformat;
if ($dateformat==$format) {
$todaystamp=mktime();
$todaydate=date($format,$todaystamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
$yestdate=date($format,(($todaystamp-86400)+($bbuserinfo['timezoneoffset']-$timeoffset)*3600));
$date = date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
Alittle help is appreciated. ^^;;