I am hot on the trail of this problem but still need help from a competent php programmer.
The problem lies with a bug in openx
https://developer.openx.org/jira/browse/OX-3620
This means that calls out to local mode will result in the board's zone setting (or that of the user's session) being set to UTC.
I am trying to work out how to implement a simple save and reset before and after the plugin call respectively but so far with no success.
Any suggestions or help/coaching would be appreciated.
Will
Something like
Code:
$script_tz1 = date_default_timezone_get();
// get banner via direct invocation of phpAdsNew
// this is basically taken from the invocationcode generated by phpAdsNew - it does its own checks to prevent multiple inclusion
global $phpAds_context;
if (@require($vbulletin->options['panpath'] . (strstr($vbulletin->options['panpath'] , '/phpadsnew.inc.php') ? '' : '/phpadsnew.inc.php' )))
{
if (!isset($phpAds_context))
{
$phpAds_context = array();
}
$ad = view_raw($what, $clientid, $target, $source, $withtext, $phpAds_context);
if ($vbulletin->options['panbandupes'])
{
// Remember bannerid to prevent showing banner multiple times on same page
$phpAds_context[] = array('!=' => 'bannerid:'.$ad['bannerid']);
}
return "<!-- BEGIN ad {$adcomment} -->{$ad['html']}<!-- END ad {$adid} -->";
date_default_timezone_set($script_tz1);
}
}
}
}
this method suggested by someone experiencing the problem and troubleshooting it on vb.com
http://www.vbulletin.com/forum/showt...99#post1738499
Can't wait to get this sorted - it should mean we can do an update to phpadsnew integration for openx2.8 and vB3.8.2
Will