hold meeting on jan 2 when new year's day falls on january 1

This commit is contained in:
Jeff Epler 2023-12-13 10:00:33 -06:00
parent 29617d0281
commit 1a626407f8
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE
2 changed files with 13 additions and 1 deletions

View file

@ -49,7 +49,7 @@ def localize(d):
now = localize(datetime.datetime.now())
def first_monday(year):
d = datetime.datetime(year, 1, 2, 14)
d = datetime.datetime(year, 1, 1, 14)
while d.weekday() != 0:
d += datetime.timedelta(days=1)
return d

View file

@ -351,7 +351,19 @@ DTEND;TZID=US/Eastern:20231218T150000
DTSTAMP;TZID=US/Eastern:20221128T130618
END:VEVENT
BEGIN:VEVENT
SUMMARY:New Year's Day -- Meeting Postponed due to holiday
DTSTART;TZID=US/Eastern:20240101T140000
DTEND;TZID=US/Eastern:20240101T150000
DTSTAMP:20231213T145937Z
END:VEVENT
BEGIN:VEVENT
SUMMARY:CircuitPython Discord Meeting\n(2PM in UTC-5)
DTSTART;TZID=US/Eastern:20240102T140000
DTEND;TZID=US/Eastern:20240102T150000
DTSTAMP;TZID=US/Eastern:20231213T095937
END:VEVENT
BEGIN:VEVENT
SUMMARY:CircuitPython Discord Meeting
DTSTART;TZID=US/Eastern:20240108T140000
DTEND;TZID=US/Eastern:20240108T150000
DTSTAMP;TZID=US/Eastern:20231213T095107