summaryrefslogtreecommitdiff
path: root/gps.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-12-07 04:36:40 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-12-07 04:36:40 +0000
commitb6fc848663d0758cb0e9849eba3e25709d5ba418 (patch)
tree7a938ca679f6569e6ea111a4d6cd8587ab1432cd /gps.py
parent3424ff1f5eb9093329c7265f46892d6cd4d4ac34 (diff)
downloadgpsd-b6fc848663d0758cb0e9849eba3e25709d5ba418.tar.gz
Bug fixes from Robert Berger.
Diffstat (limited to 'gps.py')
-rwxr-xr-xgps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gps.py b/gps.py
index 44d9bbb8..b25ff51a 100755
--- a/gps.py
+++ b/gps.py
@@ -501,11 +501,11 @@ def MeterOffset((lat1, lon1), (lat2, lon2)):
def isotime(s):
"Convert timestamps in ISO8661 format to and from Unix time."
if type(s) == type(1):
- return time.strftime(time.gmtime(s), "%Y-%m-%dT%H:%M:%S")
+ return time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(s))
elif type(s) == type(1.0):
date = int(s)
msec = s - date
- date = time.strftime("%Y-%m-%dT%H:%M:%S", time.gtime(s))
+ date = time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(s))
return date + "." + `msec`[2:]
elif type(s) == type(""):
if s[-1] == "Z":