mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Return UTC timestamp for modification of path.
This commit is contained in:
parent
253ac5e0c3
commit
ce9570fce6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue