Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using format_date to with the 'r' format it fails to generate a date that is compliant with the RFC as it translates the date. According to the spec, it should always be in english.
This is particularly troublesome when trying to use modules like 'views_rss' to generate an rss feed from a non-english language site. The 'pubDate' in the feed will not be rendered in english and the feed will be invalid.
The attached patch forces the formatted string to be in english when the 'r' format is specifically requested.
Comment | File | Size | Author |
---|---|---|---|
date_format_rfc2822.patch | 918 bytes | jmiccolis | |
Comments