Skip to content

Commit 3a83c40

Browse files
tidy
1 parent 877f1c4 commit 3a83c40

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/timezones.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
aDates = [],
6262
aDays = ["January 1","July 1",],
6363
aYears = [],
64+
aYearsTZP = [1879,1921,1952,1976,2025],
6465
loopYear = "",
6566
loopData = [],
6667
tzResolved = ""
@@ -200,7 +201,7 @@
200201
}
201202
tzpdata[aYears[i]] = tzyear
202203
}
203-
if (aYears.join() == "1879,1921,1952,1976,2018") {
204+
if (aYears.join(',') == aYearsTZP.join(',')) {
204205
tzpHash = mini(tzpdata)
205206
console.log("TZP HASH/DATA", tzpHash+"\n", tzpdata)
206207
} else {
@@ -560,7 +561,7 @@
560561
// tested: every year from 0-2100
561562
// tested: negative years
562563
// use a year in the future to catch some changes from tzdata
563-
aYears = [1879,1921,1952,1976,2025]
564+
aYears = aYearsTZP
564565
/*
565566
old: using 2018
566567
unique: 49 groups (>1) 173 timezones
@@ -581,7 +582,7 @@
581582
//for (let i = -1050; i < -350; i=i+7) {aYears.push(i)} // add negative years
582583
//for (let i = 2000; i < 2100; i++) {aYears.push(i)} // add the future
583584

584-
dom.inputYears.value = aYears.join(",")
585+
dom.inputYears.value = aYears.join(',')
585586
go = true
586587
}
587588

@@ -628,6 +629,8 @@
628629
dom.elementSupported.style.display = "none"
629630
}
630631
legend()
632+
633+
631634
}
632635

633636
start()

0 commit comments

Comments
 (0)