Skip to content

Commit 1cc084c

Browse files
committed
Implements VitaliyRodnenko/geeknote pullrequest vitalyrodnenko#313 no need to divide by 1000, otherwise out date will be wrong
1 parent 8489a87 commit 1cc084c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ develop-eggs
1717

1818
# Installer logs
1919
pip-log.txt
20+
installed_files.txt
2021

2122
# Unit test / coverage reports
2223
.coverage

geeknote/out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def printDate(timestamp):
284284

285285
# ---
286286

287-
return datetime.date.strftime(datetime.date.fromtimestamp(timestamp / 1000), "%d.%m.%Y")
287+
return datetime.date.strftime(datetime.date.fromtimestamp(timestamp), "%d.%m.%Y")
288288

289289
def printLine(line, endLine="\n", out=sys.stdout):
290290
message = line + endLine

0 commit comments

Comments
 (0)