From: <wa...@us...> - 2008-05-15 19:04:32
|
Revision: 1457 http://pywebsvcs.svn.sourceforge.net/pywebsvcs/?rev=1457&view=rev Author: warnes Date: 2008-05-15 12:04:23 -0700 (Thu, 15 May 2008) Log Message: ----------- Correct error in handling time objects, per bug report and patch provided by Mark Holder, #1776459 Modified Paths: -------------- trunk/SOAPpy/SOAPpy/Types.py Modified: trunk/SOAPpy/SOAPpy/Types.py =================================================================== --- trunk/SOAPpy/SOAPpy/Types.py 2008-05-15 18:53:06 UTC (rev 1456) +++ trunk/SOAPpy/SOAPpy/Types.py 2008-05-15 19:04:23 UTC (rev 1457) @@ -592,9 +592,10 @@ def _marshalData(self): if self._cache == None: d = self._data - s = '' - - s = time.strftime("%H:%M:%S", (0, 0, 0) + d + (0, 0, -1)) + #s = '' + # + #s = time.strftime("%H:%M:%S", (0, 0, 0) + d + (0, 0, -1)) + s = "%02d:%02d:%02d" % d f = d[2] - int(d[2]) if f != 0: s += ("%g" % f)[1:] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |