Remove time fraction and return ISO in UTC

This commit is contained in:
Bo Maryniuk 2015-09-18 18:55:04 +02:00
parent dba47ecaed
commit f3fa7bc405

View File

@ -322,7 +322,7 @@ def _get_pkg_install_time(pkg):
if pkg is not None:
location = "/var/lib/dpkg/info/{0}.list".format(pkg)
if os.path.exists(location):
iso_time = datetime.datetime.utcfromtimestamp(os.path.getmtime(location)).isoformat()
iso_time = datetime.datetime.utcfromtimestamp(int(os.path.getmtime(location))).isoformat() + "Z"
return iso_time