2
0
Fork 0
forked from zynk/zynk

add pi() to !calc, bump to 0.35.3

This commit is contained in:
Johannes Findeisen 2026-07-20 03:32:44 +02:00
commit db809715d2
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2026.07.20 – Add pi() to !calc.
- Added `pi()` function support to `!calc`: bc -l does not define `pi()` on all systems, so `cmd_calc` now prepends a `pi()` definition before evaluating expressions. `!calc pi()`, `!calc pi()*2`, `!calc pi()^2` etc. all work.
- Version bumped to 0.35.3.
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).