Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Certain holidays have 2 entries for the same day but different states ie. Switzerland 2025 #899

@lightaffaire

Description

@lightaffaire

While downloading the 2025 holidays for Switzerland with the following curl command:

curl --silent -X 'GET' "https://date.nager.at/api/v3/PublicHolidays/2025/CH" -H 'accept: text/json' | jq -r '.[] | "\(.countryCode),\(.date),\(.name),\(.localName),\(.counties)"'

I noticed that various holidays are listed twice with different states (canton) as shown below:

CH,2025-01-01,New Year's Day,Neujahr,null
CH,2025-01-02,St. Berchtold's Day,Berchtoldstag,["CH-BE","CH-FR","CH-SH","CH-AG","CH-TG","CH-VD"]
CH,2025-01-06,Epiphany,Heilige Drei Könige,["CH-TI"]
CH,2025-01-06,Epiphany,Heilige Drei Könige,["CH-UR","CH-SZ"]
CH,2025-03-01,Republic Day,Jahrestag der Ausrufung der Republik,["CH-NE"]
CH,2025-03-19,Saint Joseph's Day,Josefstag,["CH-SZ","CH-VS"]
CH,2025-03-19,Saint Joseph's Day,Josefstag,["CH-LU","CH-UR","CH-NW","CH-TI"]
CH,2025-04-04,Näfels procession,Näfelser Fahrt,["CH-GL"]
CH,2025-04-18,Good Friday,Karfreitag,["CH-ZH","CH-BE","CH-LU","CH-UR","CH-SZ","CH-OW","CH-NW","CH-GL","CH-ZG","CH-FR","CH-SO","CH-BS","CH-BL","CH-SH","CH-AR","CH-AI","CH-SG","CH-GR","CH-AG","CH-TG","CH-VD","CH-NE","CH-GE","CH-JU"]
CH,2025-04-21,Easter Monday,Ostermontag,["CH-ZH","CH-BE","CH-GL","CH-FR","CH-BS","CH-BL","CH-SH","CH-AR","CH-AI","CH-SG","CH-GR","CH-AG","CH-TG","CH-TI","CH-VD","CH-GE","CH-JU"]
CH,2025-04-21,Easter Monday,Ostermontag,["CH-UR","CH-SZ","CH-OW"]
CH,2025-05-01,Labour Day,Tag der Arbeit,["CH-ZH","CH-SO","CH-BS","CH-BL","CH-SH","CH-NE","CH-JU"]
CH,2025-05-01,Labour Day,Tag der Arbeit,["CH-TG","CH-TI"]
CH,2025-05-29,Ascension Day,Auffahrt,null
CH,2025-06-09,Whit Monday,Pfingstmontag,["CH-ZH","CH-BE","CH-GL","CH-FR","CH-BS","CH-BL","CH-SH","CH-AR","CH-AI","CH-SG","CH-GR","CH-AG","CH-TG","CH-VD","CH-GE","CH-JU"]
CH,2025-06-09,Whit Monday,Pfingstmontag,["CH-UR","CH-SZ","CH-OW","CH-TI"]
CH,2025-06-19,Corpus Christi,Fronleichnam,["CH-LU","CH-UR","CH-SZ","CH-OW","CH-NW","CH-ZG","CH-FR","CH-SO","CH-AI","CH-AG","CH-VS","CH-JU"]
CH,2025-06-19,Corpus Christi,Fronleichnam,["CH-TI"]
CH,2025-06-29,Saint Peter and Saint Paul,Peter und Paul,["CH-TI"]
CH,2025-08-01,Swiss National Day,Bundesfeier,null
CH,2025-08-15,Assumption of the Virgin Mary,Maria Himmelfahrt,["CH-LU","CH-UR","CH-SZ","CH-OW","CH-NW","CH-ZG","CH-FR","CH-SO","CH-AG","CH-TI","CH-VS"]
CH,2025-08-15,Assumption of the Virgin Mary,Maria Himmelfahrt,["CH-AI","CH-JU"]
CH,2025-09-11,Geneva Prayday,Jeûne genevois,["CH-GE"]
CH,2025-09-21,Federal Day of Thanksgiving,Eidgenössischer Dank-, Buss- und Bettag,["CH-ZH","CH-BE","CH-LU","CH-SZ","CH-OW","CH-NW","CH-GL","CH-SO","CH-BS","CH-BL","CH-SH","CH-SG","CH-GR"]
CH,2025-09-22,Federal Fast Monday,Bettagsmontag,["CH-VD"]
CH,2025-11-01,All Saints' Day,Allerheiligen,["CH-LU","CH-UR","CH-SZ","CH-OW","CH-NW","CH-GL","CH-ZG","CH-FR","CH-SO","CH-SG","CH-AG","CH-TI","CH-VS"]
CH,2025-11-01,All Saints' Day,Allerheiligen,["CH-AI","CH-JU"]
CH,2025-12-08,Immaculate Conception,Mariä Empfängnis,["CH-UR","CH-OW","CH-NW","CH-ZG","CH-FR","CH-AG","CH-VS"]
CH,2025-12-08,Immaculate Conception,Mariä Empfängnis,["CH-AI","CH-JU","CH-LU","CH-SZ","CH-TI"]
CH,2025-12-25,Christmas Day,Weihnachten,null
CH,2025-12-26,St. Stephen's Day,Stephanstag,["CH-ZH","CH-BE","CH-LU","CH-GL","CH-FR","CH-BS","CH-BL","CH-SH","CH-SG","CH-GR","CH-AG","CH-TG","CH-TI","CH-AR","CH-AI"]
CH,2025-12-26,St. Stephen's Day,Stephanstag,["CH-UR","CH-SZ","CH-OW"]
CH,2025-12-31,Restoration Day,Restauration de la République,["CH-GE"]

The following holidays are affected:

CH,2025-01-06,Epiphany,Heilige Drei Könige
CH,2025-03-19,Saint Joseph's Day,Josefstag
CH,2025-04-21,Easter Monday,Ostermontag
CH,2025-05-01,Labour Day,Tag der Arbeit
etc.

I would classify this as a bug or am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions