diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-12-07 04:36:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-12-07 04:36:40 +0000 |
commit | b6fc848663d0758cb0e9849eba3e25709d5ba418 (patch) | |
tree | 7a938ca679f6569e6ea111a4d6cd8587ab1432cd /gps.py | |
parent | 3424ff1f5eb9093329c7265f46892d6cd4d4ac34 (diff) | |
download | gpsd-b6fc848663d0758cb0e9849eba3e25709d5ba418.tar.gz |
Bug fixes from Robert Berger.
Diffstat (limited to 'gps.py')
-rwxr-xr-x | gps.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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": |