Skip to content

Commit 171e1b0

Browse files
authored
Merge pull request #1891 from oasisprotocol/mz/dateFix
Fix date formatting in ROFL apps
2 parents 0a0be34 + d5965f6 commit 171e1b0

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.changelog/1891.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix date formatting in ROFL apps

src/app/components/Rofl/RoflAppsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const RoflAppsList: FC<RoflAppsListProps> = ({ isLoading, limit, paginati
7272
{
7373
align: TableCellAlign.Right,
7474
content: t('common.formattedDateTime', {
75-
value: app.date_created,
75+
timestamp: new Date(app.date_created),
7676
formatParams: {
7777
timestamp: {
7878
year: 'numeric',

src/app/pages/RoflAppDetailsPage/PolicyCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const PolicyCard: FC<PolicyCardProps> = ({ id, isFetched, network, policy
6262
{transaction ? (
6363
<>
6464
{t('common.formattedDateTime', {
65-
value: transaction.timestamp,
65+
timestamp: new Date(transaction.timestamp),
6666
formatParams: {
6767
timestamp: {
6868
year: 'numeric',

src/app/pages/RoflAppDetailsPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export const RoflAppDetailsVerticalListView: FC<{
216216
<ActiveInstancesNumberRow number={app.num_active_instances} />
217217
<DetailsRow title={t('rofl.created')}>
218218
{t('common.formattedDateTime', {
219-
value: app.date_created,
219+
timestamp: new Date(app.date_created),
220220
formatParams: {
221221
timestamp: {
222222
year: 'numeric',

0 commit comments

Comments
 (0)