@@ -13,7 +13,7 @@ import {
1313} from ' @/components/ui/breadcrumb'
1414import DynamicToc from ' @/components/astro/DynamicToc.astro'
1515import { AuthorMetadata } from ' @/components/AuthorAvatar'
16- import { getRelatedPosts , getPostNavigation , calculateReadTime , formatDate } from ' @/utils/blog'
16+ import { getRelatedPosts , getPostNavigation , calculateReadTime } from ' @/utils/blog'
1717import { ChevronLeftIcon , ChevronRightIcon } from ' lucide-react'
1818
1919import { mdxComponents } from ' @/components/mdx-components'
@@ -66,7 +66,7 @@ const schema = {
6666 headline: entry .data .title ,
6767 description: entry .data .description ,
6868 image: entry .data .imageUrl ,
69- datePublished: entry .data .pubDate . toISOString () ,
69+ datePublished: entry .data .pubDate ,
7070 author: {
7171 ' @type' : ' Person' ,
7272 name: entry .data .author
@@ -79,7 +79,7 @@ const schema = {
7979 description ={ entry .data .description }
8080 image ={ entry .data .imageUrl }
8181 type =' article'
82- publishedTime ={ entry .data .pubDate . toISOString () }
82+ publishedTime ={ entry .data .pubDate }
8383 author ={ entry .data .author }
8484 schema ={ schema }
8585>
@@ -133,7 +133,7 @@ const schema = {
133133 </div >
134134 <div class =' flex flex-col gap-1.5' >
135135 <span class =' text-muted-foreground text-sm' >Posted on</span >
136- <span class =' text-foreground text-sm font-medium' >{ formatDate ( entry .data .pubDate ) } </span >
136+ <span class =' text-foreground text-sm font-medium' >{ entry .data .pubDate } </span >
137137 </div >
138138 </div >
139139 </div >
0 commit comments