> Your one-liner explanation belongs *inside* the log message delimiters,
> right? :-) Also, the log message doesn't mention new
> Svn2Feed._format_updated_ts() function.
Actually, the change belongs to this patch[1].
[1] http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=118656
>
> > item_dict = {
> > + 'author': info_lines[0].strip('\n'),
> > '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))
>
> Comment here ("Get ...") doesn't seem to match the actual code behavior.
>
> I'll make the necessary minor tweaks and commit up.
Thank you!
--
Regards,
Bhuvaneswaran
Received on Thu Aug 24 17:16:04 2006