We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95dfdff commit 3827bbbCopy full SHA for 3827bbb
web/src/app/(content)/(info)/blog/[id]/page.tsx
@@ -70,7 +70,10 @@ const BlogPost = ({ params }: BlogPageProps) => {
70
by <span className='font-bold text-zinc-300'>{post.author}</span>
71
</p>
72
<p>
73
- {new Date(post.date).toLocaleDateString('en-UK', {
+ {/* Add 12 hours to the date to display at noon UTC */}
74
+ {new Date(
75
+ post.date.getTime() + 12 * 60 * 60 * 1000,
76
+ ).toLocaleDateString('en-UK', {
77
day: 'numeric',
78
month: 'short',
79
year: 'numeric',
0 commit comments