GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: remove faulty early termination logic from update-timezone.mjs · nodejs/node@4bdef48

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • update-timezone.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/update-timezone.mjs‎

Copy file name to clipboardExpand all lines: tools/update-timezone.mjs
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Usage: tools/update-timezone.mjs
33
import { execSync } from 'node:child_process';
44
import { renameSync, readdirSync, rmSync } from 'node:fs';
5-
import { exit } from 'node:process';
65

76
const fileNames = [
87
'zoneinfo64.res',
@@ -15,14 +14,8 @@ const availableVersions = readdirSync('icu-data/tzdata/icunew', { withFileTypes:
1514
.filter((dirent) => dirent.isDirectory())
1615
.map((dirent) => dirent.name);
1716

18-
const currentVersion = process.versions.tz;
1917
const latestVersion = availableVersions.sort().at(-1);
2018

21-
if (latestVersion === currentVersion) {
22-
console.log(`Terminating early, tz version is latest @ ${currentVersion}`);
23-
exit();
24-
}
25-
2619
execSync('bzip2 -d deps/icu-small/source/data/in/icudt*.dat.bz2');
2720
fileNames.forEach((file) => {
2821
renameSync(`icu-data/tzdata/icunew/${latestVersion}/44/le/${file}`, `deps/icu-small/source/data/in/${file}`);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.