Skip to content

Commit

Permalink
Implements VitaliyRodnenko/geeknote pullrequest vitalyrodnenko#313 no…
Browse files Browse the repository at this point in the history
… need to divide by 1000, otherwise out date will be wrong
  • Loading branch information
emKaroly committed Jul 27, 2016
1 parent 8489a87 commit 1cc084c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ develop-eggs

# Installer logs
pip-log.txt
installed_files.txt

# Unit test / coverage reports
.coverage
Expand Down
2 changes: 1 addition & 1 deletion geeknote/out.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cc084c

Please sign in to comment.