1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Make get_formatted_date return a unicode string instead of bytes

This commit is contained in:
dmiller
2014-12-09 14:18:02 +00:00
parent 9656d30661
commit f10513b154

View File

@@ -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', '')