summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-13 00:44:09 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-13 00:44:09 -0500
commit6fdefa7a574ce6132984363c214387ec364f76d6 (patch)
tree11c9caccc69cff6a21f4c75115de80fa91621ed6 /leapsecond.py
parent7e56b10ee95dcaa8c6fba17fd276724159c4f003 (diff)
downloadgpsd-6fdefa7a574ce6132984363c214387ec364f76d6.tar.gz
Address Savannah bug #40461: leapsecond.py and http proxies
Fail more gracefully in this case, and add a leapfetch=no option to work around it.
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 379cf181..79d24b3b 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -262,7 +262,7 @@ def iso_to_unix(tv):
return calendar.timegm(time.strptime(tv, "%Y-%m-%dT%H:%M:%S"))
def unix_to_iso(tv):
- "iso date to gmt Unix time."
+ "ISO date to UTC Unix time."
return time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(tv))
def graph_history(filename):