Actually, they're reporting exactly the same time. Take a look at the time zone offsets. Google is reporting Thu, 03 Nov 2011 17:00:00 -0700, which is an offset of -7 hours. The actual feed is showing Fri, 04 Nov 2011 00:00:00 +0000, which is an offset of 0 hours. If you adjust the time zone on the Google response ahead 7 hours, it becomes Fri, 04 Nov 2011 00:00:00 +0000. In other words, Google is converting the time to Pacific (US) Daylight Time, and the feed itself is providing the date in UTC. But they're still the same date/time.
Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Oct 12, 2011, at 7:41 AM, Gemma McLean wrote: > Hi there > > I have a strange problem with the pubDate element. > > I have the following code. > > $.jGFeed('http://london2012.cswp.org.uk/rssfeed- > mobile',function(feeds) > { > // Check for errors > if(!feeds) > { > // there was an error > return false; > } > > for(var i=0; i<feeds.entries.length; i++) > { > var entry = feeds.entries[i]; > var title = entry.title; > var date = entry.publishedDate; > alert(title + '-' + date); > } > }, 50); > > This produces the following 2 alerts: > > London 2012 Festival - Tickets on sale-Thu, 03 Nov 2011 17:00:00 -0700 > > Coventry Solihull Warwickshire Sports Awards-Wed, 02 Nov 2011 17:00:00 > -0700 > > Now if you go to: > > http://london2012.cswp.org.uk/rssfeed-mobile > > and/or > > http://developer.yahoo.com/yql/console/#h=SELECT%20*%20FROM%20feed%20WHERE%20url%3D%22http%3A//london2012.cswp.org.uk/rssfeed-mobile%22 > > You can see that the pubDate is actually a day later than what the > Google Feed is telling me. > > Any ideas what is going on? > > Thank you > Gemma > > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > To view this message on the web, visit > http://groups.google.com/group/google-ajax-search-api?hl=en_US > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
