Skip to content

Commit abd2a45

Browse files
committed
chore: correting locale date string on blog
1 parent efffa4b commit abd2a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/_partials/RetroBlogPostLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Layout from "../RetroLayout.astro";
1111
</h2>
1212
<h1>{frontmatter.title}</h1>
1313
<h3>{frontmatter.description}</h3>
14-
<h4 style='margin-bottom: 1rem;'>{new Date(frontmatter.date).toLocaleDateString()}</h4>
14+
<h4 style='margin-bottom: 1rem;'>{new Date(frontmatter.date).toLocaleDateString('it-IT')}</h4>
1515

1616
<small>Vuoi ripristinare il font di sistema per il contenuto del post? <a href='javascript:void(0);' onclick='document.getElementById("post-content").classList.add("default-font"); this.parentNode.remove();'>Clicca qui</a>.</small>
1717
<div id='post-content' style='margin-top: 2rem;'>

0 commit comments

Comments
 (0)