docs: document all undocumented functions, add built-in timezone table to README
- Added doc comments (/* ... */) to all 14 undocumented static functions in zynk.c matching the existing documentation style (function name, description, Parameters, Returns sections): * DB ops: seen_update, seen_lookup, tell_add, tell_deliver * String utils: valid_irc_word, normalize_city, collapse_spaces * Command handlers: cmd_reload, cmd_time, cmd_seen, cmd_tell, cmd_greeting_or_chat * Timezone helpers: tz_lookup, tz_format - Added complete reference table of all 45 built-in timezones to README.md with region, UTC offset, and DST support status, so users know which timezones work without tzdata installed. - Updated CHANGELOG.md v0.35.5 entry to reflect these additions. - Clean build, zero warnings.
This commit is contained in:
parent
12e9e51967
commit
18dfa64acc
3 changed files with 264 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
2026.07.20 – Fix !time to work without tzdata.
|
||||
|
||||
- Rewrote `!time` to try the system `localtime_r()` first, then fall back to a built-in timezone table with 45 IANA zones and simplified DST rules when the system can't resolve timezones (e.g. no `tzdata` installed). This means `!time Australia/Sydney` now shows correct AEST/AEDT even on minimal systems.
|
||||
- Added doc comments to all undocumented functions in zynk.c: `seen_update`, `seen_lookup`, `tell_add`, `tell_deliver`, `valid_irc_word`, `normalize_city`, `collapse_spaces`, `cmd_reload`, `cmd_time`, `cmd_seen`, `cmd_tell`, `cmd_greeting_or_chat`, `tz_lookup`, `tz_format`.
|
||||
- Added full list of built-in timezones to README.md (all 45 entries from `tz_table`) with region, offset, and DST status.
|
||||
- Version bumped to 0.35.5.
|
||||
|
||||
2026.07.20 – Add pi() to !calc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue