ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

rss 2 feed is one hour behind the blog

February 29, 2008 5:48am

Subscribe [3]
  • #1 / Feb 29, 2008 5:48am

    misu

    30 posts

    think it is a bug.

    with the latest ee 1.6.2 Build:  20080225 i run in the same problems with my feed. my bog, marsedit, ecto shown the same time. the rss 2 feed is 1 hour back.

    but the atom feed shows the correct time. only the rss feed is out of control.

    long time ago, i wrote about the problem here: http://ellislab.com/forums/viewthread/49663/P72/

  • #2 / Feb 29, 2008 10:30am

    Derek Jones

    7561 posts

    misi, we made no localization changes across those versions where you say it stopped working, started working, and stopped again.  As the other thread is 5 pages deep and old, we’ll keep your issue here in a new thread, but I’m moving it from from the bug forum to the support forum.

  • #3 / Feb 29, 2008 10:38am

    Sue Crocker

    26054 posts

    misu, please post a link to both the RSS and Atom feeds so we can see it.

  • #4 / Feb 29, 2008 10:41am

    misu

    30 posts

    @ derek: it is a old problem with the rss 2.0 feed and 1 hour behind..

    but yesterday i saw, that the atom feed is working like a charm. but why is the rss feed not ok?


    for me it looks like dst is not working for the rss feed. the feed is ever in the summertime

  • #5 / Feb 29, 2008 10:47am

    Derek Jones

    7561 posts

    misu, I saw your link to the post.  In it you state that moving to one version made it start working, then moving to another made it stop, etc.  That behavior is not indicative of a bug, or it would impact more than one user.

    We will do what we can to solve the riddle, misu.

  • #6 / Feb 29, 2008 10:54am

    Derek Jones

    7561 posts

    On your entry titled ‘ein altes problem mit rss’:

    Atom: {gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"} renders 2008-02-28T22:43:00Z
    RSS: {gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"} renders 2008-02-28T22:43:00+01:00

    Does this match what you see, misu?

  • #7 / Feb 29, 2008 10:59am

    misu

    30 posts

    yes, but only the atom feed shows the 23:43. the rss shows 22:43 and lost the + 1 hour.

    you can see it in google reader or bloglines too. atom=correct, rss -1 hour

  • #8 / Feb 29, 2008 11:15am

    Derek Jones

    7561 posts

    I’m going to do some research on the <dc:date> element, both what the specification is for using an offset with it, as well as how feed readers implement it in actual practice.  In the meantime, my recommendation for you is to use the Atom’s date variables in your RSS template, replacing the “%Q” with “Z”.  That indicates that the timestamp is a GMT value, and conveys no offset information in with the data, leaving it up to the user agent to determine what offset to apply.

  • #9 / Feb 29, 2008 11:53am

    misu

    30 posts

    no changings with the Z. feed is 1 hour behind the blog and

    Sorry

    This feed does not validate.

    http://feedvalidator.org/check?url=http://blurblu.de/feed/test/

  • #10 / Feb 29, 2008 12:04pm

    Derek Jones

    7561 posts

    Clear your caches and you may have to remove the feed from your reader to get it to change.  But I do not think you made the change correctly, as your timestamps are: 2008-02-29T10:25:003600.  This is the variable you should have to use my above fix.

    {gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"}

    Note that there is no % in front of the Z.

  • #11 / Feb 29, 2008 12:18pm

    misu

    30 posts

    {assign_variable:master_weblog_name="weblog1"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
        <channel>
        
        <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_url}</link>
        <description>{weblog_description}</description>
        <dc:language>{weblog_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Z"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=site/index}</link>
          <guid>{title_permalink=site/index}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{body}{/exp:xml_encode}</description>
          <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}

    i use this now. but the feed is not valide: http://feedvalidator.org/check.cgi?url=http://blurblu.de/feed/test/

    but the time is ok and correct !!!

  • #12 / Feb 29, 2008 1:12pm

    Derek Jones

    7561 posts

    Here’s an alternate template you can use that should validate.  Make sure you adjust the variables at the top of the template.

    {assign_variable:master_weblog_name="default_site"}
    {assign_variable:template_group="site"}
    {assign_variable:template_name="rss_2.0"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    
        <channel>
    
        <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_url}</link>
        <description>{weblog_description}</description>
        <copyright>Copyright {gmt_date format="%Y"} {site_name}</copyright>
        <docs>http://www.rssboard.org/rss-specification</docs>
        <generator>ExpressionEngine v{version} <a href="http://expressionengine.com/&lt/generator&gt">http://expressionengine.com/</generator&gt</a>;
        <language>{weblog_language}</language>
        <lastBuildDate>{gmt_edit_date format='%D, %d %M %Y %H:%i:%s GMT'}</lastBuildDate>
        <atom:link href="{path='{template_group}/{template_name}'}" rel="self" type="application/rss+xml" >
    
    {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
            <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
            <link>{title_permalink=site/index}</link>
            <author>{email} ({screen_name})</author>
            {categories}<category>{category_name}</category>{/categories}
            {if allow_comments}<comments>{comment_url_title_auto_path}</comments>{/if}
            <description><![CDATA[{summary}{body}]]></description>
            <guid isPermaLink="false">{title_permalink=site/index}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
            {gmt_entry_date format='%D, %d %M %Y %H:%i:%s GMT'}</pubDate>
        </item>
    {/exp:weblog:entries}
    
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #13 / Feb 29, 2008 1:27pm

    misu

    30 posts

    thxs derek. your template removed all problems

    Congratulations!

    This is a valid RSS feed.

    think we can close this thread 😊

  • #14 / Mar 01, 2008 3:44pm

    misu

    30 posts

    a last question:

    i do not wish to put my email adress into my feed and when i change

    <author>{email} ({screen_name})</author>

    into

    <dc:creator>{author}</dc:creator>

    then the feed is not vailde. any ideas why?

  • #15 / Mar 01, 2008 6:16pm

    Derek Jones

    7561 posts

    You’d need to add the dublin core namespace to the your RSS declaration to utilize that tag.

    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:atom="http://www.w3.org/2005/Atom">
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases