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

  1. Go to Settings → Public Holidays in the sidebar.
  2. Click Add Calendar.
  3. Select the Country and Year.
  4. Click Import Calendar to fetch the holidays from the Nager.Date API.

Public Holidays import dialog showing country and year dropdown selectors 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.

Public Holidays list showing multiple country calendars with active status and holiday counts 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:

  1. Global holidays always count.
  2. Regional holidays count only if the user's subdivision matches.

Holiday calendar details showing dates, names, and scope for global and regional holidays 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.

  1. Go to My Organization and edit the user.
  2. Under Holiday Calendar, select the appropriate calendar from the dropdown.
  3. If the user is in a region with specific holidays, also set their Subdivision (e.g. DE-BY for Bavaria).
  4. 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.