From b9737ed89e32fd0f4d5ec842c64e2a1ccc5a9274 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 3 Apr 2012 22:23:07 +1200 Subject: Return a datetime object from SSLCert notbefore and notafter properties. --- libmproxy/console/flowdetailview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmproxy/console') diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py index 6c5e7fe2..e589d01d 100644 --- a/libmproxy/console/flowdetailview.py +++ b/libmproxy/console/flowdetailview.py @@ -55,8 +55,8 @@ class FlowDetailsView(urwid.ListBox): text.append(urwid.Text([("head", "Server Certificate:")])) parts = [ ["Type", "%s, %s bits"%c.keyinfo], - ["Valid to", c.notafter], - ["Valid from", c.notbefore], + ["Valid to", str(c.notafter)], + ["Valid from", str(c.notbefore)], ["Serial", str(c.serial)], ] -- cgit v1.2.3