2
0
Fork 0
forked from zynk/zynk

fix: use localtime for !seen timestamps instead of UTC

seen_update() used SQLite's datetime('now') which returns UTC, causing
!seen to show wrong times (e.g. 16:00 instead of 18:00 on UTC+2).
Changed to datetime('now','localtime') so seen timestamps match the
system's local time.

Version bumped to 0.36.1.
This commit is contained in:
Johannes Findeisen 2026-07-20 22:24:21 +02:00
commit a260a93eb1
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2026.07.20 – Fix !seen showing UTC instead of local time.
- Fixed `!seen` command storing UTC timestamps instead of local time: `seen_update()` used `datetime('now')` which returns UTC, causing `!seen <nick>` to display a time offset by the server's timezone difference (e.g. 16:00 instead of 18:00 on a UTC+2 system). Changed to `datetime('now','localtime')` so seen timestamps match the system's local time.
- Version bumped to 0.36.1.
2026.07.20 – Add !gitlog command.
- Added `!gitlog [count]` command: displays recent git commits of the zynk project using `git log --oneline`. Defaults to 5 commits (`GITLOG_COUNT`), accepts 1–20 as count. Each commit is sent as a separate IRC message.