// changes the timezone to GMT date_default_timezone_set('Europe/London'); //loads rss feed variable of the image, concatination used to add a counter e.g. 1,2,3... to each photo so that they can be individually edited - using css ID, however had to apply ID to the image source not ID for css styles to work // also loads the description under each picture to explain what they the picuture shows. // changes the pubDate timezone from the rss feed when it is parsed $ipubDate = $photoitem->pubDate; $ipubDate = strftime("%Y-%m-%d %H:%M:%S", strtotime($ipubDate)); print ""; print "\n"; print "\n"; //breaks the photo feed if it reaches the selected number if($photocounter==19){ break;
Friday, 22 April 2011
Updating timezones
Worked out how to to change the timezones and format to what I want using the following code:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment