From c1a46cd3dd9323078703448df2d3cbe48131a13a Mon Sep 17 00:00:00 2001 From: dorianvp Date: Tue, 14 Apr 2026 23:06:44 +0100 Subject: [PATCH 1/2] chore: temporary timestamp removal --- components/History/components/ValueTransferDetail.tsx | 2 +- components/History/components/ValueTransferLine.tsx | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/components/History/components/ValueTransferDetail.tsx b/components/History/components/ValueTransferDetail.tsx index febd17ed6..55b889d54 100644 --- a/components/History/components/ValueTransferDetail.tsx +++ b/components/History/components/ValueTransferDetail.tsx @@ -476,7 +476,7 @@ const ValueTransferDetail: React.FunctionComponent< > {translate('history.time') as string} - {valueTransfer.time + {false ? moment((valueTransfer.time || 0) * 1000).format( 'MMM D h:mm a', ) diff --git a/components/History/components/ValueTransferLine.tsx b/components/History/components/ValueTransferLine.tsx index ee9518143..fa9821419 100644 --- a/components/History/components/ValueTransferLine.tsx +++ b/components/History/components/ValueTransferLine.tsx @@ -19,7 +19,6 @@ import { ScreenEnum, } from '../../../app/AppState'; import { ThemeType } from '../../../app/types'; -import moment from 'moment'; import { ContextAppLoaded } from '../../../app/context'; import { RPCValueTransferStatusEnum } from '../../../app/rpc/enums/RPCValueTransferStatusEnum'; @@ -94,7 +93,7 @@ const ValueTransferLine: React.FunctionComponent = ({ }} > Activity - {month} + Transactions )} = ({ alignItems: 'center', }} > - - {vt.time - ? moment((vt.time || 0) * 1000).format('MMM D, h:mm a') - : '--'} - + 2026 {vt.confirmations === 0 && ( Date: Tue, 14 Apr 2026 23:18:40 +0100 Subject: [PATCH 2/2] fix time --- components/Staking/Staking.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/components/Staking/Staking.tsx b/components/Staking/Staking.tsx index 4426a0a80..0ec23f648 100644 --- a/components/Staking/Staking.tsx +++ b/components/Staking/Staking.tsx @@ -68,16 +68,16 @@ type Finalizer = { tag: string; }; -const formatMovementDate = (unixSeconds: number | undefined) => { - if (!unixSeconds) return '-'; - const d = new Date(unixSeconds * 1000); - return d.toLocaleString(undefined, { - month: 'short', // "Oct" - day: 'numeric', // "10" - hour: 'numeric', - minute: '2-digit', - }); // "Oct 10, 4:30 PM" -}; +// const formatMovementDate = (unixSeconds: number | undefined) => { +// if (!unixSeconds) return '-'; +// const d = new Date(unixSeconds * 1000); +// return d.toLocaleString(undefined, { +// month: 'short', // "Oct" +// day: 'numeric', // "10" +// hour: 'numeric', +// minute: '2-digit', +// }); // "Oct 10, 4:30 PM" +// }; type StakingProps = DrawerScreenProps; @@ -100,7 +100,6 @@ const Staking: React.FC = ({ route }) => { timeLeftStakingDaySeconds: timeLeftStakingDay, scheduledActions, walletBonds, - valueTransfers, blocksToStakingDay, blocksTotalStakingDay, } = context; @@ -976,11 +975,12 @@ const Staking: React.FC = ({ route }) => { marginLeft: 5, }} > - {formatMovementDate( + 2026 + {/* {formatMovementDate( valueTransfers?.filter( vt => vt.txid === item.txid, )[0]?.time, - )} + )} */}