diff --git a/tools/update-timezone.mjs b/tools/update-timezone.mjs index bf3498b8abf..bf3a706bdb0 100755 --- a/tools/update-timezone.mjs +++ b/tools/update-timezone.mjs @@ -2,7 +2,6 @@ // Usage: tools/update-timezone.mjs import { execSync } from 'node:child_process'; import { renameSync, readdirSync, rmSync } from 'node:fs'; -import { exit } from 'node:process'; const fileNames = [ 'zoneinfo64.res', @@ -15,14 +14,8 @@ const availableVersions = readdirSync('icu-data/tzdata/icunew', { withFileTypes: .filter((dirent) => dirent.isDirectory()) .map((dirent) => dirent.name); -const currentVersion = process.versions.tz; const latestVersion = availableVersions.sort().at(-1); -if (latestVersion === currentVersion) { - console.log(`Terminating early, tz version is latest @ ${currentVersion}`); - exit(); -} - execSync('bzip2 -d deps/icu-small/source/data/in/icudt*.dat.bz2'); fileNames.forEach((file) => { renameSync(`icu-data/tzdata/icunew/${latestVersion}/44/le/${file}`, `deps/icu-small/source/data/in/${file}`);