PDA

View Full Version : RSS feeds displaying Pacific time


scruffy
12-30-2003, 06:53 AM
I have multiple RSS feeds on my website. When the feeds are displayed with a date/time stamp they are displaying with a pacific time on them.

I am not located in the Pacific time zone and would like the time displayed as Eastern.

I believe our servers are located in the Pacific time zone.

Is there a way so this time can be displayed as a time other than the serves time???

I am retrieving the time/date from the rss feed, so I don't believe I can manipulate.

The same thing is happening with my weather update time/date.

Any ideas??

thanks

scruffy
12-30-2003, 01:29 PM
problem solved:

I just stripped out the feed date that I was getting and converted it to PHP date() format and added 3 hours.

My server is located in Pacific time, but I wanted it to display Eastern time for my feeds.

<?
// add 3 hours to server time
// want date displayed as eastern
$feeddate=date("D, m.d.Y @ g:i a", mktime("<$MTRSSFeedCacheDate format="%H"$>","<$MTRSSFeedCacheDate format="%M"$>",0,"<$MTRSSFeedCacheDate format="%m"$>","<$MTRSSFeedCacheDate format="%e"$>","<$MTRSSFeedCacheDate format="%Y"$>")+(3*3600));
?>


Updated: <? echo $feeddate ?>