Using RFC-822 date for RSS feeds.
authorDan Karran <dan@karran.net>
Sun, 17 Jun 2007 19:17:55 +0000 (19:17 +0000)
committerDan Karran <dan@karran.net>
Sun, 17 Jun 2007 19:17:55 +0000 (19:17 +0000)
lib/osm.rb

index 7f1f4d1..99b2dc6 100644 (file)
@@ -295,7 +295,7 @@ module OSM
       item << description
 
       pubDate = XML::Node.new 'pubDate'
-      pubDate << timestamp.xmlschema
+      pubDate << timestamp.to_s(:rfc822)
       item << pubDate
 
       if latitude