• Hi everybody,

    I use the function with shortcode published by Kevin Leary to create a few RSS feeds on my site. It uses the SimplePie library.

    One of my feeds is a list of recent topics and replies on my bbPress forum and for that I wanted to specify not only publication dates but also times. The times should be local times. I managed to do so, but I don’t like the solution. It looks clumsy:

    $date_posted = date_i18n($date_format, strtotime(get_date_from_gmt($item->get_date() ) ) );

    If anybody can suggest a better, more direct solution I would be happy to hear about it!

  • The topic ‘Local time on SimplePie RSS feed’ is closed to new replies.