summaryrefslogtreecommitdiff
path: root/src/leap/eip/eipconnection.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/eip/eipconnection.py')
-rw-r--r--src/leap/eip/eipconnection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/eip/eipconnection.py b/src/leap/eip/eipconnection.py
index 8751f643..27734f80 100644
--- a/src/leap/eip/eipconnection.py
+++ b/src/leap/eip/eipconnection.py
@@ -7,6 +7,8 @@ import Queue
import sys
import time
+from dateutil.parser import parse as dateparse
+
from leap.eip.checks import ProviderCertChecker
from leap.eip.checks import EIPConfigChecker
from leap.eip import config as eipconfig
@@ -114,8 +116,7 @@ class StatusMixIn(object):
except ValueError:
return None
- # XXX this will break with different locales I assume...
- when_ts = time.strptime(when.split(',')[1], "%a %b %d %H:%M:%S %Y")
+ when_ts = dateparse(when.split(',')[1]).timetuple()
sep = ','
# XXX clean up this!
tun_read = tun_read.split(sep)[1]