Skip to content

Commit 4189728

Browse files
committed
Fix news dates: force en-US locale so months show in English
1 parent 4128809 commit 4189728

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h1>News</h1>
229229
linkedInPosts.slice().reverse().forEach(post => {
230230
const el = document.createElement("div");
231231
el.className = "post";
232-
const dateFormatted = new Date(post.date).toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' });
232+
const dateFormatted = new Date(post.date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });
233233
el.innerHTML = `
234234
<div class="date">${dateFormatted}</div>
235235
<h2>${post.title}</h2>

0 commit comments

Comments
 (0)