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 {...@@ -59,6 +59,9 @@ pub fn main() !void {
59 for (zones.items) |z| {59 for (zones.items) |z| {
60 try out_w.print(" {},\n", .{FormatId{ .bytes = z }});60 try out_w.print(" {},\n", .{FormatId{ .bytes = z }});
61 }61 }
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");
62 try out_w.writeAll("};\n");65 try out_w.writeAll("};\n");
63 try out_w.flush();66 try out_w.flush();
64}67}
zone.zig+3
...@@ -314,4 +314,7 @@ pub const Zone = enum {...@@ -314,4 +314,7 @@ pub const Zone = enum {
314 @"Pacific/Tahiti",314 @"Pacific/Tahiti",
315 @"Pacific/Tarawa",315 @"Pacific/Tarawa",
316 @"Pacific/Tongatapu",316 @"Pacific/Tongatapu",
317
318 pub const BaseType = []const u8;
319 pub const default: @This() = .@"Etc/UTC";
317};320};