diff --git a/utils/blog.ts b/utils/blog.ts index 901fa7a..d2c1268 100644 --- a/utils/blog.ts +++ b/utils/blog.ts @@ -18,9 +18,9 @@ export const getBlogPosts = () => { const { data } = matter(fileContents); const options = { month: 'long', day: 'numeric', year: 'numeric' }; - // @ts-ignore const formattedDate = new Date(data.date).toLocaleDateString( 'en-IN', + // @ts-ignore options ); diff --git a/utils/projects.ts b/utils/projects.ts index d42b898..d898729 100644 --- a/utils/projects.ts +++ b/utils/projects.ts @@ -18,9 +18,9 @@ export const getProjects = () => { const { data } = matter(fileContents); const options = { month: 'long', day: 'numeric', year: 'numeric' }; - // @ts-ignore const formattedDate = new Date(data.date).toLocaleDateString( 'en-IN', + // @ts-ignore options );