Note: Use updated calendars
Choose one of the following:
commenthol/date-holidays
Working as expected, all days are correct in both calendars:
vacanza/holidays
Using vacanza/holidays, this python recipe for the updated Swedish vacanza/holidays file can be used to solve this issue:
from holidays.countries.sweden import SE
from holidays.ical import ICalExporter
def generate():
language = "sv"
years = range(2021, 2031)
for category in SE.supported_categories:
holidays = SE(include_sundays=False, years=years, categories=category, language=language)
file_path = f"SE_COMMON_{language.upper()}_{category.upper()}.ics"
ICalExporter(holidays).save_ics(file_path)
if __name__ == "__main__":
generate()
Todo
If you don't use vacanza/holidays, you need to fix stuff manually.
Restore public holidays
The old https://www.mozilla.org/media/caldata/SwedishHolidays.ics (and now obsolete) calendar file correctly contains these public holidays:
- Trettondag jul (Epiphany)
- Annandag påsk (Easter Monday)
- Första maj (International Workers' Day)
- Pingstdagen (Pentecost Sunday)
- Annandag jul (Second Day of Christmas)
However, none of them are included in the current ICS file https://github.com/thunderbird/thunderbird-website/blob/master/media/caldata/autogen/SwedishHolidays.ics that is hosted at https://www.thunderbird.net/media/caldata/autogen/SwedishHolidays.ics which is listed at https://www.thunderbird.net/en-US/calendar/holidays/
Remove non-public observances
Remove "CLASS:public" (or change the class value) for entries that are NOT public holidays:
BEGIN:VEVENT
SUMMARY:Påskmåndag
DTSTART;VALUE=DATE:20250421
DTEND;VALUE=DATE:20250422
DTSTAMP:20250430T135956Z
UID:4847dc56e24e593cf9a7cd69f249dbec-2025-all
CATEGORIES:Holidays
CLASS:public
DESCRIPTION:Public Holiday - Påskmåndag är dagen efter påsksöndagen.
LAST-MODIFIED:20250430T135956Z
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SUMMARY:Många kristna över hela världen firar årligen pingst\, även k
änd som Whitsunday eller Whit Sunday.
DTSTART;VALUE=DATE:20250608
DTEND;VALUE=DATE:20250609
DTSTAMP:20250430T135956Z
UID:6436e129b6e4f5a6fcc7a363ee5f7ada-2025-all
CATEGORIES:Holidays
CLASS:public
DESCRIPTION:Public Holiday - Many Christians all over the world annually o
bserve Pentecost\, also known as Whitsunday or Whit Sunday.
LAST-MODIFIED:20250430T135956Z
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SUMMARY:Juldagen
DTSTART;VALUE=DATE:20251225
DTEND;VALUE=DATE:20251226
DTSTAMP:20250430T135956Z
UID:dbb97aeb4aada310b6936a314249f4ff-2025-all
CATEGORIES:Holidays
CLASS:public
DESCRIPTION:Public Holiday - Juldagen är en av de största kristna firan
det och faller den 25 december i den gregorianska kalendern.
LAST-MODIFIED:20250430T135956Z
TRANSP:TRANSPARENT
END:VEVENT
Rename
These entries in https://github.com/thunderbird/thunderbird-website/blob/master/media/caldata/autogen/SwedishHolidays.ics should be renamed:
- Rename "Boxing Day" to "Annandag jul"
- Rename "Epiphany" to "Trettondag jul"
Notes
References
- Förordning (1989:253) om allmänna helgdagar
Note: Use updated calendars
Choose one of the following:
commenthol/date-holidays
Working as expected, all days are correct in both calendars:
vacanza/holidays
Using vacanza/holidays, this python recipe for the updated Swedish vacanza/holidays file can be used to solve this issue:
Todo
If you don't use vacanza/holidays, you need to fix stuff manually.
Restore public holidays
The old https://www.mozilla.org/media/caldata/SwedishHolidays.ics (and now obsolete) calendar file correctly contains these public holidays:
However, none of them are included in the current ICS file https://github.com/thunderbird/thunderbird-website/blob/master/media/caldata/autogen/SwedishHolidays.ics that is hosted at https://www.thunderbird.net/media/caldata/autogen/SwedishHolidays.ics which is listed at https://www.thunderbird.net/en-US/calendar/holidays/
Remove non-public observances
Remove "CLASS:public" (or change the class value) for entries that are NOT public holidays:
Rename
These entries in https://github.com/thunderbird/thunderbird-website/blob/master/media/caldata/autogen/SwedishHolidays.ics should be renamed:
Notes
References