[Pywps-commits] r955 - trunk/pywps/Wps
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 24 19:25:09 CEST 2010
Author: jachym
Date: 2010-06-24 19:25:09 +0200 (Thu, 24 Jun 2010)
New Revision: 955
Modified:
trunk/pywps/Wps/Execute.py
Log:
fixed time format issue according to ISO8601, credit to Tom Kralidis
Modified: trunk/pywps/Wps/Execute.py
===================================================================
--- trunk/pywps/Wps/Execute.py 2010-06-24 17:10:11 UTC (rev 954)
+++ trunk/pywps/Wps/Execute.py 2010-06-24 17:25:09 UTC (rev 955)
@@ -212,7 +212,7 @@
self.process = None
# initialization
- self.statusTime = time.time()
+ self.statusTime = time.localtime()
self.pid = os.getpid()
self.status = None
self.id = self.makeSessionId()
@@ -615,8 +615,8 @@
:param exceptioncode: eventually exception
:param locator: where the problem occurred
"""
- self.statusTime = time.time()
- self.templateProcessor.set("statustime", time.ctime(self.statusTime))
+ self.statusTime = time.localtime()
+ self.templateProcessor.set("statustime", time.strftime('%Y-%m-%dT%H:%M:%SZ', self.statusTime))
self.status = status
if statusMessage != 0: self.statusMessage = statusMessage
if percent != 0: self.percent = percent
More information about the Pywps-commits
mailing list