Skip to content

Commit

Permalink
human readble provenat and proposedat
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Feb 8, 2023
1 parent f6382f4 commit 376a45b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/status-page/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@
address: string
) => {
const stateVars = await getStateVariables(provider, address);
return stateVars.lastProposedAt.toNumber();
return new Date(
stateVars.lastProposedAt.toNumber() * 1000
).toString();
},
colorFunc: function (status: Status) {
return "green"; // todo: whats green, yellow, red?
Expand All @@ -237,7 +239,7 @@
address: string
) => {
const stateVars = await getStateVariables(provider, address);
return stateVars.lastProvenAt.toNumber();
return new Date(stateVars.lastProvenAt.toNumber() * 1000).toString();
},
colorFunc: function (status: Status) {
return "green"; // todo: whats green, yellow, red?
Expand Down

0 comments on commit 376a45b

Please sign in to comment.