IRC channel logs

2026-09-04.log

back to list of logs

<ArneBab>old: wow, thank you a lot! And that fix is bigger than what I can review quickly (big thanks to the reviewer, too!)
<graywolf>Hi, I cannot figure out how to use timezone argument to localtime. Neither (localtime (current-time) "CEST") nor (localtime (current-time) "Europe/Prague") work, both produce broken time with tm:gmoff being 0.
<graywolf>Any ideas what I might be doing wrong?
<graywolf>omfg
<graywolf>how it *could* work when we explicitly discard $TZDIR
<graywolf>well, if anyone finds this message, (localtime (current-time) (string-append (getenv "TZDIR") "/Europe/Prague")) does the trick.
<graywolf>I will send a patch with a fix later.
<ArneBab>graywolf: thank you!
<graywolf>I forgot how painful anything involving timezones is without adequate libraries
<ieure>Every language seems to do a real terrible job with their datetime library.
<graywolf>To be fair C/POSIX do not really provide much help here :(
<ieure>I consider those part of "every language."
<graywolf>^_^ Yeah the whole timezone thing feels like afterthought. tzset returns no error? great. tm_gmtoff is standard only since 2024? epic.
<graywolf>On the topic of tm_gmtoff, is there a list of platforms Guile supports? Would simplify the code if we could assume it exists.