From f10513b154e27eab86140c8e7634301a9a4e81f2 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 9 Dec 2014 14:18:02 +0000 Subject: [PATCH] Make get_formatted_date return a unicode string instead of bytes --- zenmap/zenmapCore/NmapParser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zenmap/zenmapCore/NmapParser.py b/zenmap/zenmapCore/NmapParser.py index 65f63ea0d..a0eb425ed 100644 --- a/zenmap/zenmapCore/NmapParser.py +++ b/zenmap/zenmapCore/NmapParser.py @@ -623,7 +623,8 @@ in epoch format!") return ports def get_formatted_date(self): - return time.strftime("%B %d, %Y - %H:%M", self.get_date()) + return time.strftime("%B %d, %Y - %H:%M", self.get_date()).decode( + locale.getlocale()[1]) def get_scanner(self): return self.nmap['nmaprun'].get('scanner', '')