Overview
| Artifact ID: | 652735f88136526845d8fa7dcecd5c522cce91619dbd5c75072db9f8060c00ec |
|---|---|
| Ticket: | 51aa53616067cb63900b17ca1d71f07b094ffa1a
clock timezone tests fail when ran against system tzdata |
| User & Date: | sebres on 2026-03-04 22:41:23 |
Changes
- icomment:
[6ea85b82c5b408c6] fixes that for v.9.0+, starting with the issue 2 (see below), so free scan would consider +02 as hours only time zone now.<br/> It also fixes the clock tests, so they would pass with and without tcls tzdata... However there is probably a bit more stuff to do: * not clear is why system TZ CET (without tzdata) doesn't consider DST-switches (although I can imagine that it is expected situation, so in the tests it was replaced with Europe/Berlin if it running without tzdata); * better would be to introduce new yacc/bison tokens like tNMZONE2 and tNMZONE4 to represent 1, 2 and 4-digit numeric zones like ±01 or ±0100, but then it'd imply more complex lexer, because it'd expect several lookaheads to resolve ambiguity with relunit (e. g. +10 hours) or sign tUNUMBER tDAY, etc; or tNMZONE2 and tNMZONE4 become subclasses of tUNUMBER, so bison resolves them by itself; * probably system zones (without tzdata) shall prefer 4-digit TZ-name, so +0200 instead of +02 by format %Z (much better would be the regular names like CET/CEST).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"