summaryrefslogtreecommitdiff
path: root/src/leap/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/util')
-rw-r--r--src/leap/util/files.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/util/files.py b/src/leap/util/files.py
index 97741433..7c878e1d 100644
--- a/src/leap/util/files.py
+++ b/src/leap/util/files.py
@@ -60,8 +60,7 @@ def get_mtime(filename):
@rtype: str
"""
try:
- _mtime = os.stat(filename)[8]
- mtime = time.strftime("%c GMT", time.gmtime(_mtime))
+ mtime = time.ctime(os.path.getmtime(filename)) + " GMT"
return mtime
except OSError:
return None