File tree 1 file changed +6
-3
lines changed
src/components/StakingList
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,18 @@ import {
20
20
} from '@mantine/core' ;
21
21
import { modals } from '@mantine/modals' ;
22
22
import { IconBriefcase , IconPlus } from '@tabler/icons-react' ;
23
+ import utc from 'dayjs/plugin/utc' ;
24
+ import localizedFormat from 'dayjs/plugin/localizedFormat' ;
23
25
import dayjs from 'dayjs' ;
24
26
import { useState } from 'react' ;
25
27
import { formatUnits } from 'viem' ;
26
28
import { useAccount } from 'wagmi' ;
27
29
import StakingCard from '../StakingCard' ;
28
30
import classes from './StakingList.module.css' ;
29
31
32
+ dayjs . extend ( utc ) ;
33
+ dayjs . extend ( localizedFormat ) ;
34
+
30
35
const StakingList = ( ) => {
31
36
const { address, isConnected } = useAccount ( ) ;
32
37
const [ activePage , setActivePage ] = useState ( 0 ) ;
@@ -197,9 +202,7 @@ const StakingList = () => {
197
202
< Group mt = 'lg' >
198
203
< div >
199
204
< Text className = { classes . label } >
200
- { dayjs ( stakedAt * 1000 ) . format (
201
- 'YYYY-MM-DDTHH:mm:ssZ[Z]'
202
- ) }
205
+ { dayjs . utc ( stakedAt * 1000 ) . format ( 'LLL' ) }
203
206
</ Text >
204
207
< Text
205
208
size = 'xs'
You can’t perform that action at this time.
0 commit comments