function convServerToLocalTime($timestamp) { NBFrame::setPHPServerTimeZone(); $timestamp += (NBFrame::getLocalTimeZone() - $GLOBALS['xoopsConfig']['server_TZ']) * 3600; return $timestamp; }