From a83f2c6926bf295cb72f9394051ed9de2cc395be Mon Sep 17 00:00:00 2001 From: Lamisator Date: Sun, 6 Aug 2017 16:24:19 +0200 Subject: [PATCH] Added comments --- src/mainUI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mainUI.py b/src/mainUI.py index 14000c1..0f33041 100644 --- a/src/mainUI.py +++ b/src/mainUI.py @@ -52,8 +52,9 @@ class MainUI(object): file_path_lookup[filename] = fullpath with open(fullpath, "r") as fhandle: - # Get creation time - appendstring = str(datetime.datetime.strptime(time.ctime(os.path.getctime(fullpath)), "%a %b %d %H:%M:%S %Y")) + "\n" + # Get creation timei + timestamp = time.localtime(os.path.getctime(fullpath)) + appendstring = time.strftime("%a %b %d %H:%M:%S %Y", timestamp) + "\n" if preview: line = fhandle.readline() line = line.rstrip()