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

WordPress Trac noreply at wordpress.org
Wed Mar 19 00:48:55 UTC 2025


#62400: RSS Block showing date in UTC when pubDate in feed is not
-------------------------------------------------+-------------------------
 Reporter:  kaitohm                              |       Owner:  pbearne
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.8
Component:  Date/Time                            |     Version:  6.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info gutenberg-merge     |     Focuses:
  needs-unit-tests needs-patch                   |
-------------------------------------------------+-------------------------
Changes (by SirLouen):

 * keywords:  has-testing-info gutenberg-merge has-patch needs-testing =>
     has-testing-info gutenberg-merge needs-unit-tests needs-patch
 * focuses:  tests =>


Comment:

 https://core.trac.wordpress.org/ticket/62400


 == Combined Reproduction Report and Patch Testing
 === Description
 This report can't validate that the patch is working as expected.
 @narenin can you check it out?
 It also would be great to set up some unit tests

 Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
 /wordpress-develop/pull/7798.diff

 === Environment
 - WordPress: 6.8-beta3-60042-src
 - PHP: 8.2.28
 - Server: nginx/1.27.4
 - Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 134.0.0.0
 - OS: Windows 10/11
 - Theme: My Twenty Twenty Child Theme 1.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Steps taken
 1. Change timezone to UTC-7
 2. Added the RSS https://www.newtimesslo.com/sanluisobispo/Rss.xml
 3. Display date activated on the block

 4. Change timezone to UTC+9
 5. Added the RSS
 [https://www.mixonline.jp/DesktopModules/MixOnline_Rss/MixOnlinerss.aspx?rssmode=3](https://www.mixonline.jp/DesktopModules/MixOnline_Rss/MixOnlinerss.aspx?rssmode=3)

 === Results Before patch
 1.  ✅ Can confirm a misalignment with the date in Japanese test
 2.  ✅ Can confirm a misalignment with the date in USA test

 === Patch testing
 1. ❌ After testing patch in both Japanese and USA feeds with their
 respective time zones, its not working as expected for any of the two
 scenarios

 === Supplemental Artifacts
 Screenshot of USA Test before the patch https://i.imgur.com/JsJm8RH.png
 Screenshot of USA Test after patch: https://i.imgur.com/gwOX8ZE.png

 Screenshot of Japanese Test before patch: https://i.imgur.com/3h1sIz3.png
 Screenshot of Japanese Test after patch: https://i.imgur.com/dmKTVXZ.png

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


More information about the wp-trac mailing list