From d52e1f6595253a1b1ca8670627898ce47c1cb253 Mon Sep 17 00:00:00 2001 From: haobug Date: Sat, 15 Aug 2015 12:48:16 +0800 Subject: [PATCH] no need to divide by 1000, otherwise out date will be wrong datestamp: 1342295928000 div by 1K: 16.01.1970 no devide: 15.07.2012 <-- correct --- geeknote/out.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geeknote/out.py b/geeknote/out.py index 6c3e27b..960f177 100644 --- a/geeknote/out.py +++ b/geeknote/out.py @@ -284,7 +284,7 @@ def printDate(timestamp): # --- - return datetime.date.strftime(datetime.date.fromtimestamp(timestamp / 1000), "%d.%m.%Y") + return datetime.date.strftime(datetime.date.fromtimestamp(timestamp), "%d.%m.%Y") def printLine(line, endLine="\n", out=sys.stdout): message = line + endLine