fix !time timezone conversion: use TZ=date via popen instead of broken localtime approach
This commit is contained in:
parent
0906d825d3
commit
f6431b02a5
2 changed files with 23 additions and 15 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue