From 0c9358c1b2bd80e25940022e86bd8daef8184ad7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 19 Dec 2019 20:42:49 +0100 Subject: new date format, replace checkable annotations with codecs --- src/webex/renderHtml.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webex/renderHtml.tsx') 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: { {rci!.wireFees.feesForType[s].map(f => ( - {moment.unix(Math.floor(f.endStamp.t_ms / 1000)).format("llll")} + {stringifyTimestamp(f.endStamp)} {renderAmount(f.wireFee)} {renderAmount(f.closingFee)} @@ -239,9 +240,8 @@ function FeeDetailsView(props: {

{i18n.str`Rounding loss:`} {overhead}

-

{i18n.str`Earliest expiration (for deposit): ${moment - .unix(rci.earliestDepositExpiration.t_ms / 1000) - .fromNow()}`}

+

{i18n.str`Earliest expiration (for deposit): ${ + stringifyTimestamp(rci.earliestDepositExpiration)}`}

Coin Fees

-- cgit v1.2.3