Skip to content

Commit 211405c

Browse files
authored
fix: getTime is not a function (missing date conversion)
1 parent 4c1b937 commit 211405c

File tree

1 file changed

+1
-1
lines changed
  • web/src/app/(content)/(info)/blog/[id]

1 file changed

+1
-1
lines changed

web/src/app/(content)/(info)/blog/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const BlogPost = ({ params }: BlogPageProps) => {
7272
<p>
7373
{/* Add 12 hours to the date to display at noon UTC */}
7474
{new Date(
75-
post.date.getTime() + 12 * 60 * 60 * 1000,
75+
new Date(post.date).getTime() + 12 * 60 * 60 * 1000,
7676
).toLocaleDateString('en-UK', {
7777
day: 'numeric',
7878
month: 'short',

0 commit comments

Comments
 (0)