mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Return UTC timestamp for modification of path.
This commit is contained in:
parent
253ac5e0c3
commit
ce9570fce6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user