Index: contrib/hook-scripts/svn2feed.py
===================================================================
--- contrib/hook-scripts/svn2feed.py	(revision 21037)
+++ contrib/hook-scripts/svn2feed.py	(working copy)
@@ -46,8 +46,6 @@
 # TODO:
 # --item-url should support arbitrary formatting of the revision number,
 #   to be useful with web viewers other than ViewVC.
-# Actual commit date information should be placed into the feed metadata,
-#   not the item bodies.
 # Actual commit author information should be placed into the feed metadata,
 #   not the item bodies.
 # Rather more than intended is being cached in the pickle file. Instead of
@@ -67,6 +65,7 @@
 import popen2
 import cPickle as pickle
 import datetime
+import time
 
 def usage_and_exit(errmsg=None):
     """Print a usage message, plus an ERRMSG (if provided), then exit.
@@ -125,20 +124,28 @@
         child_in.close()
         child_err.close()
 
-        desc = ("\nAuthor: %sDate: %sRevision: %s\nLog: %sModified: \n%s"
-                % (info_lines[0], info_lines[1], revision, info_lines[3],
+        desc = ("\nAuthor: %sRevision: %s\nLog: %sModified: \n%s"
+                % (info_lines[0], revision, info_lines[3],
                    changed_data))
 
         item_dict = {
             'title': "Revision %s" % revision,
             'link': self.item_url and "%s?rev=%s" % (self.item_url, revision),
-            'date': datetime.datetime.now(),
+            'date': self._format_updated_ts(info_lines[1]),
             'description': desc,
             }
 
         return item_dict
 
+    def _format_updated_ts(self, revision_ts):
 
+        # Get "2006-08-10 20:17:08" from 
+        # "2006-07-28 20:17:18 +0530 (Fri, 28 Jul 2006)
+        date = revision_ts[0:19]
+        epoch = time.mktime(time.strptime(date, "%Y-%m-%d %H:%M:%S"))
+        return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch))
+
+
 class Svn2RSS(Svn2Feed):
     def __init__(self, svn_path, repos_path, item_url, feed_file,
                  max_items, feed_url):
@@ -257,8 +264,7 @@
 
         updated = doc.createElement("updated")
         entry.appendChild(updated)
-        updated.appendChild(
-            doc.createTextNode(self._format_date(info['date'])))
+        updated.appendChild(doc.createTextNode(info['date']))
 
         link = doc.createElement("link")
         entry.appendChild(link)
