1
0

cleanup get_full_history. fix #3939

This commit is contained in:
ThomasV
2018-02-21 11:52:40 +01:00
parent 1703e0036a
commit 9f7e256e39
4 changed files with 33 additions and 40 deletions

View File

@@ -416,10 +416,7 @@ def format_satoshis(x, is_diff=False, num_zeros = 0, decimal_point = 8, whitespa
return result
def timestamp_to_datetime(timestamp):
try:
return datetime.fromtimestamp(timestamp)
except:
return None
return datetime.fromtimestamp(timestamp)
def format_time(timestamp):
date = timestamp_to_datetime(timestamp)