authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-08 05:09:20-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-08 05:09:20-07:00
logbf1fa6abb927635ec63d05dfb8f0e50836462bc3
tree1452c279e420e411ab14fdec6a8320410196d2ea
parentfeba35099e8fb12c98d8e04ea3322b28575cfcbf
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

zone: add decls for use in database


2 files changed, 6 insertions(+), 0 deletions(-)

generate.zig+3
......@@ -59,6 +59,9 @@ pub fn main() !void {
5959 for (zones.items) |z| {
6060 try out_w.print(" {},\n", .{FormatId{ .bytes = z }});
6161 }
62 try out_w.writeAll("\n");
63 try out_w.writeAll(" pub const BaseType = []const u8;\n");
64 try out_w.writeAll(" pub const default: @This() = .@\"Etc/UTC\";\n");
6265 try out_w.writeAll("};\n");
6366 try out_w.flush();
6467}
zone.zig+3
......@@ -314,4 +314,7 @@ pub const Zone = enum {
314314 @"Pacific/Tahiti",
315315 @"Pacific/Tarawa",
316316 @"Pacific/Tongatapu",
317
318 pub const BaseType = []const u8;
319 pub const default: @This() = .@"Etc/UTC";
317320};