actually fix timezone issue, add event
parent
bd7f47a1bf
commit
c0d9850cfa
|
@ -6,12 +6,20 @@
|
|||
.limit(3)
|
||||
.find()
|
||||
|
||||
import { format, isPast, addMinutes, addDays, parseISO } from "date-fns";
|
||||
import { format, isPast, addDays } from "date-fns";
|
||||
|
||||
let formatDate = (date) => {
|
||||
date = new Date(date)
|
||||
return new Date(
|
||||
date.valueOf() + date.getTimezoneOffset() * 60 * 1000
|
||||
)
|
||||
}
|
||||
|
||||
for (let i = 0; i < events.length; i++) {
|
||||
let date = parseISO(events[i].date)
|
||||
|
||||
let date = formatDate(events[i].date)
|
||||
events[i].past = isPast(addDays(date, 1))
|
||||
events[i].date = format(addMinutes(date, 240), 'EEE, MMM d')
|
||||
events[i].date = format(date, 'EEE, MMM d')
|
||||
}
|
||||
|
||||
// peterfisher.me.uk/blog/javascript-sort-by-soonest-date-object/
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: Monthly Meetup
|
||||
slug: monthly-meetup-1-31-2024
|
||||
date: 2024-01-31
|
||||
published: 2024-01-31
|
||||
location: Frog Alley Brewing Co
|
||||
address: 108 State St, Schenectady
|
||||
time: 6:00 PM
|
||||
meetup: 298555131
|
||||
priority: 1
|
||||
---
|
||||
|
||||
## Details
|
||||
|
||||
Happy New Year everyone! Time for our January social meetup. We willl be celebrating the birthday of one of our founding members Sam and also saying goodbye to John who is heading to Peru for a wonderful life adventure. Let’s celebrate them and talk about all the lastest things in bitcoin. There has been a lot going on!!
|
||||
|
||||
Looking forward to seeing everyone at the January meetup! We will be at Frog Alley in Schenectady again.
|
||||
|
||||
Our monthly Bitcoin meetup! This is a Bitcoin only event. Whether you are interested in learning about Bitcoin, or are a seasoned pleb, come and hang out! We will have learning materials for those who are just starting out.
|
||||
|
||||
This has grown into a great event about meeting new plebs, socializing, and talking all things bitcoin. Hope you all can make it! Feel free to bring a friend or two to orange pill :-). Appetizers and first hour of drinks will be provided.
|
|
@ -7,7 +7,7 @@ location: Frog Alley Brewing Co
|
|||
address: 108 State St, Schenectady
|
||||
time: 6:00 PM
|
||||
meetup: 298119856
|
||||
priority: 2
|
||||
priority: 3
|
||||
---
|
||||
|
||||
## Details
|
||||
|
|
|
@ -7,7 +7,7 @@ location: Mocha Lisa's Caffe
|
|||
address: 22 Clifton Country Road, Clifton Park
|
||||
time: 6:00 PM
|
||||
meetup: 298119830
|
||||
priority: 1
|
||||
priority: 2
|
||||
---
|
||||
|
||||
## Details
|
||||
|
|
|
@ -7,7 +7,7 @@ location: Pubkey
|
|||
address: 85 Washington Pl, New York
|
||||
time: 8:00 PM
|
||||
meetup: 297764699
|
||||
priority: 3
|
||||
priority: 9999
|
||||
---
|
||||
|
||||
## Details
|
||||
|
|
|
@ -14,10 +14,17 @@
|
|||
)
|
||||
}
|
||||
|
||||
import { format, addMinutes, parseISO } from "date-fns";
|
||||
import { format } from "date-fns";
|
||||
|
||||
let date = parseISO(data.value.date)
|
||||
data.value.date = format(addMinutes(date, 240), 'EEE, MMMM do')
|
||||
let formatDate = (date) => {
|
||||
date = new Date(date)
|
||||
return new Date(
|
||||
date.valueOf() + date.getTimezoneOffset() * 60 * 1000
|
||||
)
|
||||
}
|
||||
|
||||
let date = formatDate(data.value.date)
|
||||
data.value.date = format(date, 'EEE, MMMM do')
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue