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 2be07b2 commit ec56f48Copy full SHA for ec56f48
components/menu.tsx
@@ -83,7 +83,7 @@ function Level1({ href, menu }) {
83
link = (
84
<a href={entry.href}>
85
<b>
86
- {monthNames[date.getMonth()]} {date.getDate()}
+ {monthNames[date.getUTCMonth()]} {date.getUTCDate()}
87
</b>
88
{entry.title}
89
</a>
lib/blog.ts
@@ -16,7 +16,7 @@ export function getBlogPostsByYear(limit?: number) {
16
return years;
17
}
18
const date = new Date(post.date);
19
- const year = date.getFullYear().toString();
+ const year = date.getUTCFullYear().toString();
20
if (!years[year]) {
21
years[year] = {
22
key: year,
0 commit comments