feat: expose the tzdb version of the bundled zonefile

This commit is contained in:
dualfroz committed 2026-10-03 15:30:58 +02:00
1 parent d47824c8f3
commit 1668c0dd6b
7 files changed
+22 -3

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
export const tzdbVersion = "2026c"
export default {
"9|s": "2/dili,2/jayapura",
"9|n": "2/chita,2/khandyga,2/pyongyang,2/seoul,2/tokyo,2/yakutsk,11/palau,japan,rok",
+1
View File
@@ -1,3 +1,4 @@
export const tzdbVersion = '2026c'
export default {
'africa/abidjan': {
offset: 0,
+5 -2
View File
@@ -1,6 +1,6 @@
//turn our timezone data into a small-as-possible string
import { writeFileSync } from 'node:fs'
import iana from './iana.js'
import iana, { tzdbVersion } from './iana.js'
import aliases from './aliases.js'
import prefixes from './_prefixes.js'
const all = {}
@@ -44,4 +44,7 @@ keys.forEach((k) => {
})
// console.log(result)
writeFileSync('./zonefile/_build.js', 'export default ' + JSON.stringify(result, null, 2))
writeFileSync(
'./zonefile/_build.js',
`export const tzdbVersion = ${JSON.stringify(tzdbVersion)}\nexport default ${JSON.stringify(result, null, 2)}`
)