Configuration
Public Holidays
Import and manage public holiday calendars that affect leave request workday calculations
Overview
Public holidays are subtracted from workday calculations when users submit leave requests. If a user requests five days off and one of those days is a public holiday, only four workdays are deducted from their balance.
Holidays are organized into calendars by country and year. Each calendar can be toggled active or inactive, and users are assigned to a calendar in their profile.
Import via the admin panel
- Go to Settings → Public Holidays in the sidebar.
- Click Add Calendar.
- Select the Country and Year.
- Click Import Calendar to fetch the holidays from the Nager.Date API.
Import public holidays by selecting a country and year
Import via the command line
The same import is available from the console. It takes a country code, a country name, and a year:
php bin/console app:holiday:import DE Germany 2026
Manage calendars
After importing, the calendar appears in the Public Holidays list. From here you can:
- Show: see all holidays in the calendar with their dates, names, and regions.
- Toggle Active: inactive calendars are ignored in workday calculations.
- Sync Now: re-fetch the current year's holidays (useful if the API data was updated).
Calendars can't be deleted; deactivate a calendar you no longer need instead.
Manage imported holiday calendars
Yearly sync
Every active calendar is synced automatically at 02:00 on 1 January: the app re-imports that year's holidays from Nager.Date, so workday calculations stay accurate without any manual step. The job runs in the worker service, so make sure it is running (see Background workers).
Regional subdivisions
Some countries have holidays that only apply to specific regions (e.g. state-level holidays in Germany or the US). The app handles this with two concepts:
- Global holidays — apply to everyone in that country (e.g. Christmas Day in Germany).
- Regional holidays — apply only to users in a specific subdivision (e.g. Assumption Day in Bavaria /
DE-BY).
When a holiday is imported, it stores whether it is global and which subdivision codes it applies to. The workday calculation logic:
- Global holidays always count.
- Regional holidays count only if the user's subdivision matches.
Global vs regional holidays with subdivision codes
Assign calendars to users
Each user must be assigned a public holiday calendar for it to affect their leave calculations.
- Go to My Organization and edit the user.
- Under Holiday Calendar, select the appropriate calendar from the dropdown.
- If the user is in a region with specific holidays, also set their Subdivision (e.g.
DE-BYfor Bavaria). - Save.
If no calendar is assigned, no public holidays are subtracted from that user's leave requests.
Tip: When a user's subdivision is set, they get both global holidays and holidays specific to their region. Without a subdivision, only global holidays apply.