Registry / serialization / tzdata-backward-utc

tzdata-backward-utc

JSON →
library1.0.48jsnpmunverified

The `tzdata-backward-utc` package provides a specialized subset of the IANA Time Zone Database, specifically containing old synonyms for `Etc/UTC` and `Etc/GMT` zones, represented as a single JSON file. Maintained by Rogier Schouten, this package is part of a larger ecosystem of `tzdata` modules designed to offer granular access to time zone data. Its current stable version is `1.0.48`, updated to IANA TZ database version `2026a`, and it generally follows the release cadence of the upstream IANA TZ database, typically updating every few months to reflect the latest time zone rules, such as recent changes for Kazakhstan or Palestine. Key differentiators include its focus on a very specific historical subset of time zone data and its direct provision of the raw IANA data as a machine-readable JSON object, primarily intended for consumption by other timezone processing libraries like `timezonecomplete`, rather than being a timezone calculation library itself.

npm install tzdata-backward-utc
INSTALL
IMPORT
SIG · TZDATA-BACKWARD-UT
T
tzdata-backward-utc
serializationjavascriptv1.0.48
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsonData
const jsonData = require('tzdata-backward-utc');
import jsonData from 'tzdata-backward-utc';
This package is primarily consumed as a JSON module via CommonJS `require()` in Node.js. While Node.js can often import JSON directly with ESM `import`, the documentation explicitly shows `require`.
tzdataBackwardUtc
<!-- In browser HTML --> <script src="./tzdata-backward-utc.js"></script> <script> var data = tzdataBackwardUtc; </script>
const data = tzdataBackwardUtc;
In a browser environment, the UMD module exposes the time zone data as a global variable `tzdataBackwardUtc`. This global is not available in Node.js environments.
tzData
import tzData from 'tzdata-backward-utc';
import { tzData } from 'tzdata-backward-utc';
When using ESM in Node.js (or bundlers), the JSON data is the default export. There are no named exports from this module.

This quickstart demonstrates how to import the `tzdata-backward-utc` JSON data in Node.js and access its content, including specific zone information and the embedded IANA TZ Database version.

const backwardUtcData = require('tzdata-backward-utc'); console.log('Loaded backward-utc timezone data (truncated):'); console.log(Object.keys(backwardUtcData).slice(0, 5).map(key => `${key}: ${JSON.stringify(backwardUtcData[key]).slice(0, 50)}...`)); // Example of accessing a specific zone, e.g., 'UTC' const utcZoneInfo = backwardUtcData['UTC']; if (utcZoneInfo) { console.log('\nInformation for UTC zone (truncated):'); console.log(JSON.stringify(utcZoneInfo, null, 2).slice(0, 200) + '...'); } else { console.log('\nUTC zone information not found.'); } // Demonstrate use of the IANA TZ Database version property (added in v1.0.46) if (backwardUtcData.version) { console.log(`\nIANA TZ Database Version: ${backwardUtcData.version}`); } else { console.log('\nVersion property not found (older package version).'); }
Debug
Known issues
breakingThe IANA Time Zone Database, which this package mirrors, is updated periodically to reflect changes in political time zone boundaries, UTC offsets, and daylight-saving rules. These are data changes, not API changes, but they directly affect time calculations for historical or future dates.
fix
Regularly update `tzdata-backward-utc` to the latest version to ensure you are using the most current time zone rules. Be aware that time zone calculations for past or future dates may change with updates.
affects: All versions, as it reflects upstream IANA TZ data updates.
gotchaThis package is a specific subset of the IANA TZ database, containing only old synonyms for `Etc/UTC` and `Etc/GMT`. It does not provide comprehensive time zone data for all regions globally. Using it in isolation for general time zone handling will lead to incomplete or incorrect results.
fix
For full IANA time zone support, combine this module with the main `tzdata` package or other regional `tzdata-*` modules, typically integrated through a library like `timezonecomplete`.
affects: All versions
gotchaThis module lists `tzdata-etcetera` as a peer dependency. While npm 7+ handles peer dependencies automatically, older npm versions (or other package managers) might require manual installation, or incorrect installation could lead to missing data links.
fix
Ensure `tzdata-etcetera` is installed alongside `tzdata-backward-utc` using `npm install tzdata-backward-utc tzdata-etcetera` or ensure your package manager correctly resolves peer dependencies.
affects: <=1.0.48
Errors
Common errors & fixes
TypeError: tzdataBackwardUtc is not defined
Attempting to access the browser global variable `tzdataBackwardUtc` in a Node.js environment.
fix
In Node.js, use `const data = require('tzdata-backward-utc');` to import the module's JSON content. The global variable is only available when the UMD bundle is loaded in a browser.
Cannot find module 'tzdata-backward-utc'
The package has not been installed, or the import path is incorrect.
fix
Ensure the package is installed using `npm install tzdata-backward-utc` and that the import statement matches the package name exactly.
SyntaxError: Named export 'tzData' not found. The requested module 'tzdata-backward-utc' does not provide an export named 'tzData'
Attempting to use a named import for a module that provides a default export (the JSON object itself) but no named exports.
fix
Use a default import instead: `import tzData from 'tzdata-backward-utc';` for ESM, or `const tzData = require('tzdata-backward-utc');` for CommonJS.
Upgrade
Version history
1.0.48latest on npm
Audit
Dependencies
tzdata-etceterarequiredThis module's data contains links to zones in `tzdata-etcetera` for complete resolution of time zone information.
Agent activity
25 hits · last 30 days
node
22
Meta
1
OpenAI (training)
1
Resources
tzdata-backward-utc — npm install tzdata-backward-utc · libregistry