[wp-trac] [WordPress Trac] #62400: RSS Block showing date in UTC when pubDate in feed is not

WordPress Trac noreply at wordpress.org
Wed Nov 13 06:14:49 UTC 2024


#62400: RSS Block showing date in UTC when pubDate in feed is not
--------------------------+-----------------------------
 Reporter:  kaitohm       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  6.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Originally reported in
 [https://ja.wordpress.org/support/topic/rss%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%e3%81%a7%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e6%8a%95%e7%a8%bf%e6%97%a5%e6%99%82%e3%81%8c%e5%8d%8a%e6%97%a5%e3%81%bb%e3%81%a9%e3%82%ba%e3%83%ac%e3%82%8b/
 this Japanese support thread].

 To reproduce:
 1. Change the site timezone to something other than UTC+0. (Example:
 `UTC+9`)
 2. Include an RSS Block to any post.
 3. Add a link to an RSS feed where the `pubDate` item is not in GMT/UTC.
 (Example:
 https://www.mixonline.jp/DesktopModules/MixOnline_Rss/MixOnlinerss.aspx?rssmode=3
 where `pubDate` has a `+0900` offset.)
 4. In block settings, turn on `Display date`.
 5. Both in the editor and the published post, the date will be shown in
 UTC. (Example: An article with `<pubDate>Wed, 13 Nov 2024 04:52:00
 +0900</pubDate>` in the feed will be shown `November 12, 2024`. With the
 site timezone set to UTC+9, I would expect this to say `November 13,
 2024`)

 Things I've tested:
 * I've reproduced the forum ticket submitter's issue on WordPress 6.7.
 * Changing the language in site settings doesn't have any effect.
 * Testing with a different RSS feed gave the same results
 (https://www.nhk.or.jp/rss/news/cat1.xml).
 * Plugin https://wordpress.org/plugins/wp-rss-aggregator/ and external RSS
 reader https://www.inoreader.com showed the intended date (November 13th)
 when using the same feed. So, the issue doesn't seem to be with the feed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62400>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list