2
0
Fork 0
forked from zynk/zynk

fix !time timezone conversion: use TZ=date via popen instead of broken localtime approach

This commit is contained in:
Johannes Findeisen 2026-07-20 03:16:01 +02:00
commit f6431b02a5
2 changed files with 23 additions and 15 deletions

View file

@ -1,3 +1,8 @@
2026.07.20 – Fix !time timezone conversion bug.
- Fixed `!time` command: `setenv("TZ",...) + localtime()` was not reliably converting to the requested timezone. Replaced with `TZ=... date` via `popen()`, which handles all IANA timezone names correctly (e.g. `!time Australia/Sydney` now shows 11:15 AEST instead of UTC).
- Version bumped to 0.35.2.
2026.07.20 – Fix !calc not working (bc stdin not connected).
- Fixed `!calc` command: the expression was never piped to `bc`'s stdin, causing empty output and a "no result" error for every expression. Added a second pipe to feed the expression into `bc` before reading the result.