Skip to content

Commit

Permalink
user friendly formatted date
Browse files Browse the repository at this point in the history
  • Loading branch information
dayo.ogundipe committed Oct 19, 2023
1 parent ec06fbd commit f0657f4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified API/reactivities.db
Binary file not shown.
Binary file modified API/reactivities.db-shm
Binary file not shown.
Binary file modified API/reactivities.db-wal
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default observer(function ActivityDetailedHeader({ activity }: Props) {
<p>
{DateTime.fromISO(
new Date(activity.date).toISOString()
).toFormat(`L'/'dd'/'yyyy h':'mma `)}
).toLocaleString(DateTime.DATE_HUGE)}
</p>
)}
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default observer(function ActivityDetailedInfo({ activity }: Props) {
<span>
{DateTime.fromISO(
new Date(activity.date!).toISOString() as string
).toFormat(`L'/'dd'/'yyyy h':'mma `)}
).toLocaleString(DateTime.DATE_HUGE)}
</span>
</Grid.Column>
</Grid>
Expand Down

0 comments on commit f0657f4

Please sign in to comment.