Skip to content

Commit

Permalink
Fix time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPower committed Jan 18, 2025
1 parent 0695c31 commit 462196b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"dev": "TZ=etc/UTC astro dev",
"build": "TZ=etc/UTC astro build",
"preview": "TZ=etc/UTC astro preview",
"astro": "TZ=etc/UTC astro"
},
"dependencies": {
"@astrojs/mdx": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { Content } = await render(post);
<div>
{
post.data.date ? (
<p>Published on {format(post.data.date, "yyyy-mm-dd")}</p>
<p>Published on {format(post.data.date, "yyyy-MM-dd")}</p>
) : null
}
</div>
Expand Down

0 comments on commit 462196b

Please sign in to comment.