Skip to content

Commit

Permalink
switzerland: move easter monday from valais to vaud
Browse files Browse the repository at this point in the history
closes #698
  • Loading branch information
derTobsch committed Dec 19, 2024
1 parent 7ef6e31 commit c7aaa39
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jollyday-core/src/main/resources/holidays/Holidays_ch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
<FixedWeekday which="THIRD" weekday="SUNDAY" month="SEPTEMBER"/>
</RelativeToWeekdayInMonth>
<ChristianHoliday type="GOOD_FRIDAY" descriptionPropertiesKey="christian.GOOD_FRIDAY"/>
<ChristianHoliday type="EASTER_MONDAY" descriptionPropertiesKey="christian.EASTER_MONDAY"/>
<ChristianHoliday type="WHIT_MONDAY" descriptionPropertiesKey="christian.WHIT_MONDAY"/>
</Holidays>
</SubConfigurations>
Expand All @@ -289,7 +290,6 @@
<Fixed month="AUGUST" day="15" descriptionPropertiesKey="ASSUMPTION_DAY"/>
<Fixed month="NOVEMBER" day="1" descriptionPropertiesKey="ALL_SAINTS"/>
<Fixed month="DECEMBER" day="8" descriptionPropertiesKey="IMMACULATE_CONCEPTION"/>
<ChristianHoliday type="EASTER_MONDAY" descriptionPropertiesKey="christian.EASTER_MONDAY"/>
<ChristianHoliday type="CORPUS_CHRISTI" descriptionPropertiesKey="christian.CORPUS_CHRISTI"/>
</Holidays>
</SubConfigurations>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static java.time.Month.AUGUST;
import static java.time.Month.DECEMBER;
import static java.time.Month.JANUARY;
import static java.time.Month.MARCH;
import static java.time.Month.NOVEMBER;


Expand Down Expand Up @@ -49,6 +50,20 @@ void ensuresHolidays() {
.and()
.hasChristianHoliday("CORPUS_CHRISTI")
.inSubdivision("ag")
.and()

/* Vaud */
.hasFixedHoliday("ST_BERCHTHOLD", JANUARY, 2).inSubdivision("vd").and()
.hasChristianHoliday("GOOD_FRIDAY").inSubdivision("vd").and()
.hasChristianHoliday("EASTER_MONDAY").inSubdivision("vd").and()
.hasChristianHoliday("WHIT_MONDAY").inSubdivision("vd").and()

/* Valais */
.hasFixedHoliday("ST_JOSEPH", MARCH, 19).inSubdivision("vs").and()
.hasFixedHoliday("ASSUMPTION_DAY", AUGUST, 15).inSubdivision("vs").and()
.hasFixedHoliday("ALL_SAINTS", NOVEMBER, 1).inSubdivision("vs").and()
.hasFixedHoliday("IMMACULATE_CONCEPTION", DECEMBER, 8).inSubdivision("vs").and()
.hasChristianHoliday("CORPUS_CHRISTI").inSubdivision("vs")

.check();
}
Expand Down

0 comments on commit c7aaa39

Please sign in to comment.