diff options
Diffstat (limited to 'website/src/components/BlogFeed.astro')
| -rw-r--r-- | website/src/components/BlogFeed.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/website/src/components/BlogFeed.astro b/website/src/components/BlogFeed.astro index 3d6352d..f1559b9 100644 --- a/website/src/components/BlogFeed.astro +++ b/website/src/components/BlogFeed.astro @@ -27,8 +27,8 @@ function matchesYear(year: number) { } function sortByPubDateDescending(post1: CollectionEntry<'blog'>, post2: CollectionEntry<'blog'>) { - const date1 = post1.data.pubDate.getMilliseconds(); - const date2 = post2.data.pubDate.getMilliseconds(); + const date1 = post1.data.pubDate.getTime(); + const date2 = post2.data.pubDate.getTime(); return date2 - date1; } |
