Skip to content

Commit

Permalink
fix(web): fixed items not showing correct date
Browse files Browse the repository at this point in the history
  • Loading branch information
Wamy-Dev committed Aug 15, 2023
1 parent 178015d commit 7922629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/lib/components/ModListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
export let description: string;
export let category: string;
export let downloads: any;
export let updatedAt: string;
export let updatedAt: number;
export let icon: string;
</script>
Expand Down Expand Up @@ -50,7 +50,7 @@
<Pill label={`${downloads} Downloads`}>
<DownloadIcon customClasses="w-4 h-4" />
</Pill>
<Pill label={`Updated ${Sugar.Date.relative(new Date(updatedAt))}`}>
<Pill label={`Updated ${Sugar.Date.relative(new Date(updatedAt * 1000))}`}>
<CalendarIcon customClasses="w-4 h-4" />
</Pill>
</div>
Expand Down

0 comments on commit 7922629

Please sign in to comment.