On Tue, Oct 26, 2021 at 12:01 PM Sage Gerard <s...@sagegerard.com> wrote: > > I can understand wanting gregor for timezone offsets when constructing > moments, but... > > Assuming I have the right repository link, gregor's tz/c contract is only > (or/c string? (integer-in -64800 64800)) [1]. I can set the feed-timezone > parameter in Splitflap to an arbitrary string and the guard won't stop me.
I'm guessing you haven't actually tried this: ``` > (moment 2000 #:tz "arbitrary string") . . Library/Racket/8.0/pkgs/tzinfo/tzinfo/private/tzfile-parser.rkt:21:0: Cannot find zoneinfo file for [arbitrary string] ``` > The IANA's timezone database changed this month, and gregor's last commit was > 2 years ago. Gregor's repo doesn't contain the IANA tzdb and prefers to rely on the system's zoneinfo files. Every contemporary Unix (including MacOS) ships with this data and updates it with OS updates. Windows is a different story (though I know that in recent years, parts of the Windows ecosystem works with IANA zones, so maybe those files exist somewhere?). You're right that the tzdata package has old data. It would probably make sense for someone who runs Windows to maintain it. It comes with a script that can update the package for a new version of the tzdb. I'll do that right now, in fact. Thanks for reminding me. - Jon -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAKfDxxzEQBkv1z2T_T4KDhayoPQbeCe%3D%3Dai8YJJKnAZ4z_dUKA%40mail.gmail.com.