Skip to content

Commit 371b9af

Browse files
committed
fix date fields
1 parent e26253f commit 371b9af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/scripts/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
row.appendChild(balance)
8484

8585
let updatedAt = document.createElement('td')
86-
updatedAt.innerText = new Date(balances[i].updated_at * 1000).toLocaleString()
86+
updatedAt.innerText = new Date(balances[i].updated_at).toLocaleString()
8787
row.appendChild(updatedAt)
8888

8989
balanceHolder.appendChild(row)
@@ -153,7 +153,7 @@
153153

154154
let date = document.createElement('td')
155155
let timestamp = transactions[i].confirmed_at || transactions[i].initiated_at || 0
156-
date.innerText = new Date(timestamp * 1000).toLocaleString()
156+
date.innerText = new Date(timestamp).toLocaleString()
157157
row.appendChild(date)
158158

159159
transactionHolder.appendChild(row)

0 commit comments

Comments
 (0)