Fork me on GitHub

RSS template displays wrong date for articles with start date set in the future  Bottom

  • OK, I found something else. I noticed that if I set a news item to publish at a future date, the RSS feed displays the publication date as the date and time that I entered the story into the database, not the date and time that publication is set for.


    I understand that it has to do with the variable:

    Code

    <!--[$info.cr_date|updated|published]-->


    in pubDate tag of the news_user_index template in the News module templates of the RSS theme. What I can't figure out after looking at the various Smarty and Xanthia cheat sheets is what format this variable should take to display properly. I've tried various things without success, including info.briefdatetime, which doesn't display any publication date at all when it displays the feed.


    Can someone give me a clue what parameter to put in the pubDate tag to get the feed to properly display the publication date and time when the publication date and time is set into the future?
  • Try with $info.time
    News API loads there the further date if exists,
    so, i hope it works with that field.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • That seems to create its own weird set of problems. In IE, the XML file appears to display the wrong time zone -- it's off by about 5 hours. In Firefox every single story appears with the same publication time: yesterday at 6 PM, even though all were created and published at different times. In Google Chrome it displays the correct time.

    Bizarre.
  • Hey, that happened to me once when i used $info.briefdatetime and tried to format it with the pndate_format modifier. So, seems that the plugins expect other format of the time and are taking a default value, the same one. So, have to study what needs the updated and published modifiers of the RSS theme...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • nestormateo

    So, have to study what needs the updated and published modifiers of the RSS theme...


    Do you mean then that it's possibly related to this?:
    http://code.zikula.org/core/ticket/302
  • The order issue, no, i guess not,
    It's related with this plugin:
    /themes/rss/plugins/…ifier.published.php

    May be some debug inside that plugin
    to print which is returned by strtotime($string)
    and which string is received, etc...



    edited by: nestormateo, Oct 31, 2008 - 02:39 AM

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Nope, that changed every item to the current date/time.

This list is based on users active over the last 60 minutes.