Skip to content

Commit 27b642e

Browse files
committed
fix date
1 parent 2f929a3 commit 27b642e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ async function build() {
6868

6969
log("Fetching next event...")
7070
let next = (await fetchEvents())[0]
71-
next.date = new Date(next.date).toLocaleDateString('en-GB', {
71+
next.date = new Intl.DateTimeFormat("en-GB", {
7272
month: 'long',
7373
day: 'numeric'
74-
})
75-
console.log(next)
74+
}).format(new Date(next.date))
7675
log("Fetched next event")
7776

7877
let data = {

src/talks.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function extractTalk(body) {
2525
}
2626

2727
function talks() {
28-
return []
2928
return fetch(GITHUB_ISSUES, {
3029
headers: {
3130
Authorization: `token ${process.env.GH_TOKEN}`

0 commit comments

Comments
 (0)