Actually, the Feeds API automatically converts dates to US Pacific Time. How you would convert this to the client's local time would vary depending on your programming environment. For instance, in Javascript, the conversion *should* be automatic. If you create a new Date object by passing result.publishedDate in US Pacific Time, you should then be able to call date.getHours() and get the correct hours or date.toString() and get the correct time in the client's current timezone. In Perl, you could create a DateTime object with the string and then call, for example, $dt->set_time_zone( "Europe/Paris" ); . In PHP, your code would look something like this:
date_default_timezone_set("America/Chicago"); $dt = DateTime::createFromFormat("D, d M Y H:i:s P", $result->publishedDate); $dt->setTimezone(new DateTimeZone("America/Chicago")); Hope that helps. jg On Wed, Mar 13, 2013 at 2:43 AM, Axel Auvinen <axel.auvi...@gmail.com>wrote: > Hello, is there any workaround to show local time instead of UTC time? > Couldn't find any yet, kinda hoping someone could help :) > > -Axel > > -- > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > google-ajax-search-api@googlegroups.com > To unsubscribe from this group, send email to > google-ajax-search-api+unsubscr...@googlegroups.com > To view this message on the web, visit > https://groups.google.com/d/msg/google-ajax-search-api/-/rz-6tSIl8cYJ > > 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 unsubscribe from this group and stop receiving emails from it, send an > email to google-ajax-search-api+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Jeremy R. Geerdes Generally Cool Guy Des Moines, IA If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! http://www.debraheightswesleyan.org -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com 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 unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.