Skip to content

Conversation

@elerch
Copy link

@elerch elerch commented Nov 6, 2025

There doesn't seem to be a zig-0.16 branch yet, but this PR would belong in this branch. These changes will accommodate the new std.Io interface introduced in zig master. Unfortunately this requires a breaking change to the public api. local now needs io to read from the timezone db, as well as loadTimeZone. The instant function also now needs io, but only to read from the system clock when using now. I've chosen to add a nullable io field to the Config struct that is only actually used when .now is specified...this seemed like the cleanest approach at the time, but it's likely the most controversial change in this patchset.

@rockorager
Copy link
Owner

Thanks for this! I'll make a branch and move this PR to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants