#3066 closed defect (bug) (fixed)
Feed Bugs <pubDate> Issue
Reported by: | anirban789 | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | API - Feeds | Keywords: | has-patch |
Cc: | anirban@… |
Description
Hi there,
I had talked to Mailchimp support executive on why RSS feed campaign emails are not sending on scheduled time but test emails are working fine. We had posted twice in the forum but none of them sent from MailChimp. But they were working a week before.
After troubleshooting they told me that the possible reason behind it maybe the <pubDate> tag is not working properly. I've attached the screenshot. I've tested the feeds on http://validator.w3.org/feed/ of my other sites & they are all showing same <pubDate> tag highlighted yellow color.
Please help
Attachments (2)
Change History (10)
#1
@
8 years ago
http://validator.w3.org/feed/docs/warning/ImplausibleDate.html
"While this date-time value is formatted correctly, it either appears to be in the future"
Most probably an issue of a timezone difference.
This is a warning, not an error.
#2
@
8 years ago
- Component changed from Component - Forums to API - Feeds
- Keywords reporter-feedback added
- Priority changed from high to normal
- Severity changed from major to normal
#3
@
8 years ago
- Cc anirban@… added
@thebrandonallen @casiepa thanks for your replies. I've changed the code as you mentioned @thebrandonallen but it seems to be not working. I checked again in feed validator and it showing same result!
#4
@
8 years ago
- Keywords has-patch added; reporter-feedback removed
- Milestone changed from Awaiting Review to 2.6
- Version changed from 2.5.12 to 2.2
Confirmed.
This occurs because we're calling current_time( 'mysql' )
for the channel <pubDate>
. This means we're using a localized timestamp to generate the RFC compliant timestamp.
WP sets the internal application time to GMT, which also means that the pubDate
ends up with +0000 (GMT) as it's offset. This goes unnoticed for those of us whose server time is at or before GMT.
However, since those, such as the Australians, live in the future, Marty's brother and sister start disappearing, and bad things happen.
Attached patch fixes the date, even if you're in the future waiting for your Delorean's flux capacitor to reach 1.21 jigowatts. It also changes <pubDate>
to the more appropriate <lastBuildDate>
, and switches to using r
as the date format.
#5
@
8 years ago
@anirban789 If you want to make the changes highlighted in attachment:3066.diff, you should be back up and running.
#6
@
8 years ago
- Owner set to johnjamesjacoby
- Resolution set to fixed
- Status changed from new to closed
In 6318:
Feed Validator Screenshot