The `tzdata-europe` package provides a specific subset of the IANA Time Zone Database, specifically the data found in the 'europe' file, formatted as a JavaScript object that can be directly consumed as JSON. Its current stable version is `1.0.48`, which encapsulates the IANA TZ Database version `2026a`. The package maintains a frequent release cadence, typically updating multiple times per year to align with the latest IANA TZ database releases (e.g., `202Xb`, `202Xc`). This module is not a standalone time zone manipulation library but rather a data provider, intended to be consumed by other libraries like `timezonecomplete` for actual time zone operations. Its key differentiator is providing only the European zones, allowing for smaller bundle sizes in applications that don't need the full global dataset.
npm install tzdata-europeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to load the European time zone data using CommonJS in Node.js, access specific zone information, and perform basic data exploration.
Regularly update the 'tzdata-europe' package to its latest version (e.g., 'npm install tzdata-europe@latest' or 'yarn upgrade tzdata-europe').
Review code that accesses or iterates over all time zone entries, particularly if it handles edge cases or unexpected zone names. Ensure robustness against missing or removed entries, and adapt to the updated data structure if necessary.
For global time zone support, consider using the main 'tzdata' package or combine multiple regional 'tzdata-*' packages. Always validate the existence of a time zone key (e.g., `if (europeTimezones[zoneId])`) before attempting to use its associated data.
Run 'npm install tzdata-europe' or 'yarn add tzdata-europe' in your project directory. Ensure your Node.js application is executed in a context where the module is resolvable, typically within the project's root or a subdirectory.
Ensure the `<script src="./node_modules/tzdata-europe/tzdata-europe.js"></script>` tag is present in your HTML `<head>` or before any JavaScript code that tries to access `tzdataEurope`. Verify the global variable name is correctly spelled as `tzdataEurope`.
Double-check the time zone identifier string (e.g., 'Europe/Berlin') for correctness and ensure it is listed among the zones provided by `tzdata-europe`. If you need global time zone coverage, switch to the full 'tzdata' package.