I don't know what your development environment is, but if I was going to do it in (e.g.) JS or Perl, I would parse the string, create the Date (JS) or DateTime (Perl) object, and then change the timezone. Other languages would have similar constructs.
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 8:15 AM, Gemma McLean wrote: > Aha that makes perfect sense. Hmm wonder if I can tell it to use GMT > instead. If not I guess I could set the time of the events to 6pm or > something so that the day would be the same with PDT. > > Thank you! > > On Oct 12, 1:53 pm, Jeremy Geerdes <[email protected]> wrote: >> That doesn't explain why Google is converting things to PDT. It would seem >> more appropriate to return whatever the feed has. >> >> 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%20... >> >>> 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 -- 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
