diff options
-rw-r--r-- | src/leap/common/files.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/common/files.py b/src/leap/common/files.py index bba281b..84e9015 100644 --- a/src/leap/common/files.py +++ b/src/leap/common/files.py @@ -59,8 +59,9 @@ def get_mtime(filename): :rtype: str """ try: - mtime = time.ctime(os.path.getmtime(filename)) + " GMT" - return mtime + return time.strftime( + '%a, %d %b %Y %H:%M:%S GMT', time.gmtime( + os.path.getmtime(filename))) except OSError: return None |