From ce9570fce671ebc4ca59f1c3e479d1732b82401f Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Fri, 18 Sep 2015 11:50:34 +0200 Subject: [PATCH] Return UTC timestamp for modification of path. --- salt/modules/dpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/dpkg.py b/salt/modules/dpkg.py index 3433e1be64..85997e1b6d 100644 --- a/salt/modules/dpkg.py +++ b/salt/modules/dpkg.py @@ -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