diff --git a/CHANGELOG.md b/CHANGELOG.md index 670ef3c..4def633 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +2026.07.20 – Remove timezone abbreviation from !time response. + +- `!time` now outputs date and time only (`YYYY-MM-DD HH:MM:SS`) without the timezone abbreviation, keeping IRC responses shorter and cleaner. +- Removed 60 lines of dead timezone abbreviation-matching code from `tz_format()` (previously mapped 45 IANA timezone names to abbreviations like CEST, EDT, JST, etc.). +- Updated README.md output format to reflect the change. +- Added `tzdata` to README.md requirements as optional (without it, `!time` falls back to 45 built-in timezones). +- Version bumped to 0.35.6. + 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. diff --git a/zynk.c b/zynk.c index d6cc17c..a63b9c1 100644 --- a/zynk.c +++ b/zynk.c @@ -29,7 +29,7 @@ int asprintf(char **, const char *, ...); /* ---- constants ---- */ -#define VERSION "0.35.5" +#define VERSION "0.35.6" #define DEFAULT_SERVER "irc.libera.chat" #define OPENCODE_BIN "/usr/bin/opencode" #define CLR_RESET "\033[0m"