Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

RFC-822 Compatible Dates In RSS Feeds

DZone's Guide to

RFC-822 Compatible Dates In RSS Feeds

·
Free Resource
If you're building RSS 2.0 files with .rxml files on your Rails app, this sort of line will get you a valid date/time:

xml.pubDate(p.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))

If you're just using strftime someplace else, perhaps in PHP, try:

strftime("%a, %d %b %Y %H:%M:%S %z")
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}