diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-19 20:42:49 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-19 20:42:49 +0100 |
commit | 0c9358c1b2bd80e25940022e86bd8daef8184ad7 (patch) | |
tree | a8c8ca0134bd886d8151633aff4c85e9513ad32c /src/webex/renderHtml.tsx | |
parent | 49e3b3e5b9bbf1ce356ef68f301d50c689ceecb9 (diff) | |
download | wallet-core-0c9358c1b2bd80e25940022e86bd8daef8184ad7.tar.xz |
new date format, replace checkable annotations with codecs
Diffstat (limited to 'src/webex/renderHtml.tsx')
-rw-r--r-- | src/webex/renderHtml.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webex/renderHtml.tsx b/src/webex/renderHtml.tsx index 767058ebf..3204c410d 100644 --- a/src/webex/renderHtml.tsx +++ b/src/webex/renderHtml.tsx @@ -31,6 +31,7 @@ import * as moment from "moment"; import * as i18n from "./i18n"; import React from "react"; import ReactDOM from "react-dom"; +import { stringifyTimestamp } from "../util/time"; /** * Render amount as HTML, which non-breaking space between @@ -215,7 +216,7 @@ function FeeDetailsView(props: { <tbody> {rci!.wireFees.feesForType[s].map(f => ( <tr> - <td>{moment.unix(Math.floor(f.endStamp.t_ms / 1000)).format("llll")}</td> + <td>{stringifyTimestamp(f.endStamp)}</td> <td>{renderAmount(f.wireFee)}</td> <td>{renderAmount(f.closingFee)}</td> </tr> @@ -239,9 +240,8 @@ function FeeDetailsView(props: { <p> {i18n.str`Rounding loss:`} {overhead} </p> - <p>{i18n.str`Earliest expiration (for deposit): ${moment - .unix(rci.earliestDepositExpiration.t_ms / 1000) - .fromNow()}`}</p> + <p>{i18n.str`Earliest expiration (for deposit): ${ + stringifyTimestamp(rci.earliestDepositExpiration)}`}</p> <h3>Coin Fees</h3> <div style={{ overflow: "auto" }}> <table className="pure-table"> |