PDA

View Full Version : How to Adjust Timezone Setting in RSS Display Boxes?



air009
05-15-2009, 05:33 PM
1) Script Title: RSS Display Boxes

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm

3) Describe problem: I'd like to learn how to adjust the time zone setting to EST. It's currently reporting my host's server time CMT. Can't seem to grasp the code on this one. :confused: Many thanks in advance. :)

ddadmin
05-17-2009, 07:14 PM
The date output is controlled by the SimplePie backend script used by the script. Try looking up the documentation (http://simplepie.org/wiki/reference/start) concerning date output for it, though note that the version used by the script is older than that which is currently listed on the site.

karks88
06-14-2012, 04:24 PM
Sorry to bring up an old post, but I had a similar problem with this script and found the fix. Newer versions of PHP will give you a timezone error.

To fix, you just open up /rssbox/main.php and add the following line to the top:


<?php
date_default_timezone_set('America/New_York');
?>

If you need a list of Timezones in PHP, you can find it here (http://us.php.net/manual/en/timezones.php).