Tcl Source Code

View Ticket
Login
2026-11-03
11:05 • New ticket [3d978e0a84] `clock -timezone` escapes safe interp via `~` path (8.6.... artifact: 0e8fecddd5 user: bef
2026-03-04
00:45 • Closed ticket [2c237beffb]: clock regression in tzdata (TZ generation in tclZI... artifact: 8e1fb6ca5c user: sebres
00:40
merge 9.0 (partial): amend to [2c237beffbace823] fixing generation of TZ name from offset by %z arti... check-in: 163bdb1a4b user: sebres tags: trunk, main
00:36
merge 8.x: amend to [2c237beffbace823] fixing generation of TZ name from offset by %z artificial nam... check-in: ad6e2ae829 user: sebres tags: core-9-0-branch
00:26
merge 8.6: amend to [2c237beffbace823] fixing generation of TZ name from offset by %z artificial nam... check-in: 6cd465b3e4 user: sebres tags: core-8-branch
00:21
amend to [2c237beffbace823] fixing generation of TZ name from offset by %z artificial name in data; ... check-in: 8fbdebecff user: sebres tags: core-8-6-branch
00:20
fixes test coverage for [2c237beffbace823] (TZ generated from offset by artificial %z token in IANA ... check-in: 131a1b70ce user: sebres tags: core-8-6-branch
00:13
fixes test coverage for [2c237beffbace823] (TZ generated from offset by artificial %z token in IANA ... closed check-in: 05af4fe48a user: sebres tags: core-8-5-branch
2026-03-03
23:57
amend to [2c237beffbace823] fixing generation of TZ name from offset by %z artificial name in data; ... check-in: 72997d924d user: sebres tags: core-8-5-branch
23:20 • Open ticket [2c237beffb]: clock regression in tzdata (TZ generation in tclZIC ... artifact: df24110998 user: sebres
2026-02-27
17:34 • New ticket [51aa536160] clock timezone tests fail when ran against system tzdata... artifact: 0da5a44039 user: rossburton
2024-10-30
23:15
Merge [ab6663673f92f81f]: Fixes regression and further bug [2c237beffbace823]. check-in: f77783d30d user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
15:29 • New ticket [9a1dca76cd] clock-59.2 failure. artifact: 3ddcab29ba user: dgp
2024-10-29
18:45 • Closed ticket [2c237beffb]: clock regression in tzdata (TZ generation in tclZI... artifact: 061d95b206 user: sebres
18:39
merge 8.7: fixes regression and further bug [2c237beffbace823] check-in: ab6663673f user: sebres tags: trunk, main
18:37
merge 8.6: fixes regression and further bug [2c237beffbace823] check-in: 5f73876fe7 user: sebres tags: core-8-branch
18:29
merge 8.5 (branch bug-fix-tz-w-offs): fixes regression and further bug [2c237beffbace823]: - tools... check-in: 6a166839ed user: sebres tags: core-8-6-branch
18:14
merge branch bug-fix-tz-w-offs: fixes regression and further bug [2c237beffbace823]: - tools/tclZI... check-in: fd0f43ac1f user: sebres tags: core-8-5-branch
18:08
additional fix for [2c237beffbace823]: usage of time zones `Etc/GMT±n` were impossible previously d... closed check-in: 67e7522bd1 user: sebres tags: bug-fix-tz-w-offs
18:02
clock.test: coverage for regression and further bugs [2c237beffbace823] check-in: 30833841e4 user: sebres tags: bug-fix-tz-w-offs
17:58 • New ticket [2c237beffb] clock regression in tzdata (TZ generation in tclZIC se... artifact: 9a56333e8e user: sebres

Ticket UUID: 2c237beffbace823e27c6abe6a330e8fddbd1ca4
Title: [clock] regression in tzdata (TZ generation in tclZIC seems not support new iana database format, e. g. %z instead of offset TZ-name)
Type: Bug Created on: 2024-10-29 17:58:28
Submitter: sebres Assigned to: nobody
Subsystem: 16. Commands A-H Severity: Critical
Priority: 9 Immediate Last modified: 2026-03-04 00:45:10
Status: Closed Closed by: sebres
Resolution: Fixed Closed on: 2026-03-04 00:45:10
Version: 8.6.15, 8.7+
Description:

[9275edd424971958] introduced a regression: several TZs got wrong time zone names (%z instead of TZ-offset name).

The reason looks like "tools/tclZIC.tcl" didn't support the change on the format for IANA time zone database 2024b.

I'm preparing a branch bug-fix-tz-w-offs fixing tools/tclZIC.tcl and few other small bugs around it found by tests and attempt to fix github/tclclockmod#24. The branch is initiated as 8.5-based branch to avoid the regression in 8.5 by regeneration of tzdata with tools/tclZIC there.

This was also released with 8.6.15 and 9.0, so I guess it must be rereleased soon or a quick patch must be provided for maintainers.

User Comments:
sebres added on 2024-10-29 18:45:02:

Fixed in all branches now, thus close it.

For the patch of 8.6.15 see [6a166839ed62c9c1], 9.0 - [ab6663673f92f81f].


sebres added on 2026-03-03 23:20:47:

I'll reopen this, since the fix of tclZIC-tool has an issue for replacement of TZ with minutes.

For instance, TZ "America/Paramaribo" has an offset -12600, which shall result to the name "-0330" instead of "-0430" (like it does now).

PoC:

# Math:
# 3*60*60+30*60 == 12600
# 4*60*60+30*60 == 16200

# Tcl-Clock: % clock format 0 -timezone America/Paramaribo -format "%H:%M %Z" 20:30 -0430 % clock format 0 -timezone -0330 -format "%H:%M %Z" 20:30 -0330 % clock format 0 -timezone -0430 -format "%H:%M %Z" 19:30 -0430

(still worse - it'd be wrong by the conversion back, because clock scan would consider %Z incorrectly)

I'll provide the fix together with updated tzdata.


sebres added on 2026-03-04 00:45:10:

The continuation issue resolved in [72997d924deaff7d] ... [163bdb1a4bdf56a3], ticket closed.