[wp-trac] [WordPress Trac] #62400: RSS Block showing date in UTC when pubDate in feed is not
WordPress Trac
noreply at wordpress.org
Thu Nov 14 08:00:40 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 | Resolution:
Keywords: has-testing-info gutenberg-merge | Focuses:
----------------------------------------------+----------------------------
Comment (by kaitohm):
> @kaitohm, can you clarify the expected behavior in the description?
@Mamaduka Did you mean here in Trac, or in the GitHub issue?
Currently, if the feed says `<pubDate>Wed, 13 Nov 2024 04:00:00
+0900</pubDate>`, then regardless of site timezone, the block shows
`November 12th`.
What should happen is, if the feed says `<pubDate>Wed, 13 Nov 2024
04:00:00 +0900</pubDate>`, then
- if the site timezone is set to UTC+5, UTC+6, UTC+7..., then the block
should show `November 13th`.
- if the site timezone is set to UTC+4, UTC+3, UTC+2..., then the block
should show `November 12th`.
As another example, if the feed says `<pubDate>Wed, 13 Nov 2024 04:00:00
GMT</pubDate>`, then
- if the site timezone is set to UTC-4, UTC-3, UTC-2..., then the block
should show `November 13th`.
- if the site timezone is set to UTC-5, UTC-6, UTC-7..., then the block
should show `November 12th`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62400#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list