Skip to content

Commit 2553e1a

Browse files
refactor: extract tzVersion from tzdata URL
1 parent 3f7201f commit 2553e1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/tzgen/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import (
1616
"strings"
1717
)
1818

19-
const tzdataURL = "https://data.iana.org/time-zones/releases/tzdata2025b.tar.gz"
19+
const (
20+
tzVersion = "2025b"
21+
tzdataURL = "https://data.iana.org/time-zones/releases/tzdata" + tzVersion + ".tar.gz"
22+
)
2023

2124
func main() {
2225
if err := run(context.Background()); err != nil {

0 commit comments

Comments
 (0)