Skip to content

Commit

Permalink
fixed date formatting (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
satwomey authored May 7, 2024
1 parent a83854a commit 1cb97b7
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/content/events/2023-10-19-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2023-10-19.png
date: 2023-10-19
date: 2023-10-19 19:00:00
meetup: https://www.meetup.com/astoria-tech-meetup/events/296373024/
presentations:
- 2023-10-19-mahmoud-saada
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2023-12-07-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2023-12-07.png
date: 2023-12-07
date: 2023-12-07 19:00:00
meetup: https://www.meetup.com/astoria-tech-meetup/events/297194678/
presentations: []
title: 'Astoria Tech Meetup #32'
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2024-01-24-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2024-01-24.png
date: 2024-01-24
date: 2024-01-24 19:00:00
meetup: https://www.meetup.com/astoria-tech-meetup/events/298296853/
presentations:
- 2024-01-24-anthony-holten
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2024-02-28-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2024-02-28.png
date: 2024-02-28
date: 2024-02-28 19:00:00
meetup: https://www.meetup.com/astoria-tech-meetup/events/299106966/
presentations:
- 2024-02-28-nicolas-prado
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2024-04-03-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2024-04-03.png
date: 2024-04-03
date: 2024-04-03 19:00:00
googleCal: http://www.google.com/calendar/event?location=Katch+Astoria+-+31-19+Newtown+Ave+-+Queens%2C+NY%2C+us&action=TEMPLATE&sprop=name%3AAstoria+Tech+Meetup&sprop=website%3Ahttps%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F299930243&details=For+full+details%2C+including+the+address%2C+and+to+RSVP+see%3A+https%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F299930243%0A%0A&text=Astoria+Tech+Meetup+%2335&dates=20240403T230000Z%2F20240404T020000Z
ical: https://www.meetup.com/astoria-tech-meetup/events/299930243/ical/Astoria+Tech+Meetup+%252335.ics
meetup: https://www.meetup.com/astoria-tech-meetup/events/299930243/
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2024-05-01-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2024-05-01.png
date: 2024-05-01
date: 2024-05-01 19:00:00
googleCal: http://www.google.com/calendar/event?location=Katch+Astoria+-+31-19+Newtown+Ave+-+Queens%2C+NY%2C+us&action=TEMPLATE&sprop=name%3AAstoria+Tech+Meetup&sprop=website%3Ahttps%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F300534931&details=For+full+details%2C+including+the+address%2C+and+to+RSVP+see%3A+https%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F300534931%0A%0A&text=Astoria+Tech+Meetup+%2336&dates=20240501T230000Z%2F20240502T020000Z
ical: https://www.meetup.com/astoria-tech-meetup/events/300534931/ical/Astoria+Tech+Meetup+%252336.ics
meetup: https://www.meetup.com/astoria-tech-meetup/events/300534931
Expand Down
2 changes: 1 addition & 1 deletion src/content/events/2024-06-05-event.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
banner: /banners/2024-06-05.png
date: 2024-06-05
date: 2024-06-05 19:00:00
googleCal: http://www.google.com/calendar/event?location=Katch+Astoria+-+31-19+Newtown+Ave+-+Queens%2C+NY%2C+us&action=TEMPLATE&sprop=name%3AAstoria+Tech+Meetup&sprop=website%3Ahttps%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F300806680&details=For+full+details%2C+including+the+address%2C+and+to+RSVP+see%3A+https%3A%2F%2Fwww.meetup.com%2Fastoria-tech-meetup%2Fevents%2F300806680%0A%0A&text=Astoria+Tech+Meetup+%2337&dates=20240605T230000Z%2F20240606T020000Z
ical: https://www.meetup.com/astoria-tech-meetup/events/300806680/ical/Astoria+Tech+Meetup+%252337.ics
meetup: https://www.meetup.com/astoria-tech-meetup/events/300806680/
Expand Down
4 changes: 3 additions & 1 deletion src/markdown/event-markdown.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import type {HydratedFeedItemPreHtml} from '../types'
const optionsTime = {timeZone:"UTC", hour:"numeric", minute:"numeric"};
const optionsDate = {weekday:"long", year:"numeric", month:"long", day:"numeric"};

export default ({event, permalink}: HydratedFeedItemPreHtml) => `
# [Save the date - ${event.data.title}](${permalink})
${event.data.meetupImage ? `<img alt="event banner for ${event.data.date}" src="${event.data.meetupImage}" style="width:500px"/>` : ''}
Our next Event will be on ${event.data.date}
Our next Event will be on ${event.data.date.toLocaleDateString("en-US", optionsDate)+", at "+event.data.date.toLocaleTimeString("en-US", optionsTime)}
Be sure to RSVP on meetup [Event Link on Meetup](${event.data.meetup}).
Expand Down

0 comments on commit 1cb97b7

Please sign in to comment.