diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-13 17:06:55 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-03-13 17:06:55 -0300 |
commit | 6502ea97ca6dfe5341047341ecbe166276d75c2e (patch) | |
tree | 276972d455d883859681c93d28202590687d123f /src/leap/util/files.py | |
parent | 9bd4a1394cfbdd555b9cb42e2aeba3dc4957ae88 (diff) |
Fix timestamp for file creation
Diffstat (limited to 'src/leap/util/files.py')
-rw-r--r-- | src/leap/util/files.py | 3 |
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 |