We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf5baa0 + 790d264 commit be00692Copy full SHA for be00692
geeknote/out.py
@@ -274,6 +274,16 @@ def rawInput(message, isPass=False):
274
275
276
def printDate(timestamp):
277
+
278
+ # Author @ash-2000 https://github.com/ash-2000
279
+ # Check for crashing when timestamp is 13 digits on python2.7
280
+ # pull request #260
281
282
+ if len(str(timestamp)) == 13:
283
+ timestamp = int(str(timestamp)[0:-3])
284
285
+ # ---
286
287
return datetime.date.strftime(datetime.date.fromtimestamp(timestamp / 1000), "%d.%m.%Y")
288
289
def printLine(line, endLine="\n", out=sys.stdout):
0 commit comments