Skip to content

Commit 700ec77

Browse files
authored
fix: use consistent format for changelog dates (#7028)
1 parent a8fdc96 commit 700ec77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/generate-changelog.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ for (const file of files) {
3030
.replace(/\/page$/, '');
3131

3232
changelogRecords.push({
33-
date: new Date(data.date).toLocaleDateString(undefined, {
34-
day: 'numeric',
35-
month: 'long',
36-
year: 'numeric',
37-
calendar: 'gregory',
38-
}),
33+
date: new Date(data.date).toISOString().split('T')[0],
3934
href: `https://the-guild.dev/graphql/hive/product-updates/${pathname}`,
4035
title: data.title,
4136
description: data.description || '',

0 commit comments

Comments
 (0)