Closed (fixed)
Project:
Drupal core
Version:
6.12
Component:
node.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2008 at 16:59 UTC
Updated:
2 Jun 2009 at 06:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
Shnoulle commentedSame problem with 6.1 and french langage.
puDate had to be in EN .
(with rss feeder (Thunderbird, google, aggregator of drupal ...) All rss have the same date.)
rss.xml is OK, but not /blog/feed
Thank you
Comment #2
ptilu8 commentedSame problem
Drupal6.1
French
Invalid PubDate format
rss.xml not OK
Thx
Comment #3
macgirvin commentedGive this patch a try. I haven't tested it myself because I don't have any translations but theoretically it should fix the problem. It simply forces the date to be in English when filling in the pubDate field contents for the feed.
Comment #4
ptilu8 commentedTested, seems ok for me...
Comment #5
macgirvin commented...If we can get one more person to test this, I'd be happy to bump it up a notch so that the change gets committed. As mentioned previously, I don't have the localisation framework to test it myself.
It's a quite serious bug for anybody not on an English default system; as all their feeds are non-validating and potentially unusable. It would be quite appropriate IMHO to mark it as 'critical'.
Comment #6
hsiegel commentedJust tested this and it works for me (german language).
This patch should be added as soon as possible, as all 6.1 users seem to have the same issue with their rss-feeds if they changed their installation from english-default.
Thx
Comment #7
damien tournoud commentedHum. I don't really understand why there is not the same problem on Drupal 5. Could someone clarify that?
From
node_feed()in Drupal 5:... and
format_date()does not support the$langcodeargument, which has been added in Drupal 6.Comment #8
damien tournoud commentedOh, and (if confirmed) this is critical (it breaks the whole feed creation mecanism), and bugs should get corrected in the current development version, than back-ported.
Comment #9
dries commentedThe patch is not formatted properly and therefore won't apply. It needs to be re-rolled with proper line-breaking. Thanks.
Comment #10
macgirvin commentedPatch re-rolled - not certain how the lines got folded.
Comment #11
floretan commentedFile was patching node.module.orig, which doesn't exist. Fixed in attached patch.
Besides the very long line of code (which was already there before), this looks good.
Comment #12
mfbThis is a critical bug for drupal 6.
Here's what I think is a more correct patch: the formatting has to be correct so we should use PHP date functions, not format_date().
Comment #13
macgirvin commented+1
I concur.
Comment #14
mfbFixing component.
Comment #15
dries commentedI've committed this patch to CVS HEAD and DRUPAL-6. Thanks mfb.
Comment #16
dries commentedComment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #18
damien tournoud commented#212864: rss feed wrong date was also committed to the DRUPAL-5 branch, but only got released yesterday with Drupal 5.8. Here is a reroll.
Comment #19
drummCommitted to 5.x.
Comment #20
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #21
Bilalx commentedStill have the same problem with the latest version of drupal
Comment #22
mfb@Jaafarix: Not sure why there'd still be an issue since this patch is in 6.12: http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/node/node.module?a...
Comment #23
Bilalx commentedYes I checked the patch against 6.12 and it is there. Still the publication date are in french for me, both with views and rss.xml and the feed does not validate.
I removed the date for now thanks to theming but it would be nice to have the english date in feed instead of the french one
Comment #24
damien tournoud commented@Jaafarix: what you are seeing is a Views issue. Please see #461842: Views translates pubdate of rss feed for details.
Comment #25
Bilalx commentedI tried the patch and i have english dates now.
Thank you very much :).