Changeset 1735

Show
Ignore:
Timestamp:
12/24/06 14:37:46 (3 years ago)
Author:
athomas
Message:

XmlRpcPlugin:

Applied patches from gotoh and stp, thanks. Closes #434 and #845.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xmlrpcplugin/0.10/tracrpc/util.py

    r1188 r1735  
    33def to_timestamp(datetime): 
    44    """ Convert xmlrpclib.DateTime string representation to UNIX timestamp. """ 
    5     return time.mktime(time.strptime(datetime.value, '%Y%m%dT%H:%M:%S')) 
     5    return time.mktime(time.strptime('%s UTC' % datetime.value, '%Y%m%dT%H:%M:%S %Z')) - time.timezone 
  • xmlrpcplugin/0.10/tracrpc/wiki.py

    r1188 r1735  
    168168    def wikiToHtml(self, req, text): 
    169169        """ Render arbitrary Wiki text as HTML. """ 
    170         return wiki_to_html(text, self.env, req, absurls=1
     170        return unicode(wiki_to_html(text, self.env, req, absurls=1)