summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-13 17:06:55 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-13 17:06:55 -0300
commit6502ea97ca6dfe5341047341ecbe166276d75c2e (patch)
tree276972d455d883859681c93d28202590687d123f /src
parent9bd4a1394cfbdd555b9cb42e2aeba3dc4957ae88 (diff)
Fix timestamp for file creation
Diffstat (limited to 'src')
-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