diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 1dcdba6..6ef6413 100644 --- a/src/main.zig +++ b/src/main.zig @@ -23,7 +23,7 @@ const SOURCE_URL = "https://git.sr.ht/~robertgzr/site/tree/master"; const PUBLIC_INBOX = "~robertgzr/public-inbox@lists.sr.ht"; // tune std.log options -pub const std_options = .{ +pub const std_options = std.Options{ .log_level = .info, }; @@ -180,13 +180,12 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr defer allocator.free(srcpathZ); _ = std.os.linux.stat(srcpathZ, attr); const mtime = attr.mtime(); - // const mtime_str = c.ctime(&mtime.tv_sec); - var mtime_str: [200]u8 = undefined; + var mtime_str: [256]u8 = undefined; const n = c.strftime( &mtime_str, mtime_str.len, "%F", - c.localtime(&mtime.tv_sec), + c.localtime(&mtime.sec), ); break :blk mtime_str[0..n]; }; |