Ready to get started?Download WordPress


timestamp / zone issue in 1.5 (6 posts)

  1. Hella
    Posted 9 years ago #

    When upgrading to 1.5, my wp-rss2.php seems to be producing the wrong timestamp / zone combinations. The posts in the blog are fine, just when looked at through the feed they are wrong. I think the problem is on line 36 of the wp-rss2.php file:

    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s')); ?></pubDate>

    The timezone +0000 is hardcoded but the get_the_time function is pulling back a local timestamp. Either the timezone needs to be pulled from the database or the get_the_time function needs to pull GMT times. Changing +0000 to my timezone fixes it ... but is this really a bug or do I have another upgrade issue?

  2. joshk
    Posted 9 years ago #

    I'm noticing this as well. Isn't there a way that mysql2date could return the timezone as part of the format? It would be marginally better than just returning GMT converted time, because RSS 2.0 is supposed to support all RFC 822 dates transparently.

  3. Tahongawaka
    Posted 9 years ago #

    Did you set the timezone differential correctly on your General Options page?

  4. explosive
    Posted 9 years ago #

    yes..same problem here also..

    but in general options its showing the correct time...(GMT +5.5) --what i had set..

    what to do ???


  5. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

  6. indi
    Posted 9 years ago #

    Using the new wp-rss2.php file is still giving me the same error. I add a new post and the pubdate is set 6 hours ahead of what it should be.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.