Return UTC timestamp for modification of path.

This commit is contained in:
Bo Maryniuk 2015-09-18 11:50:34 +02:00
parent 253ac5e0c3
commit ce9570fce6

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.fromtimestamp(os.path.getmtime(location)).isoformat()
iso_time = datetime.datetime.utcfromtimestamp(os.path.getmtime(location)).isoformat()
return iso_time