this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

deps: update zeit

+5 -5
+2 -2
build.zig.zon
··· 11 11 .hash = "1220f3260273dd957a4ffb8b453e5b5a2204311ed06b2384e492d01ac06e751ae56b", 12 12 }, 13 13 .zeit = .{ 14 - .url = "git+https://github.com/rockorager/zeit?ref=main#9cca8ec620a54c3b07cd249f25e5bcb3153d03d7", 15 - .hash = "1220755ea2a5aa6bb3713437aaafefd44812169fe43f1da755c3ee6101b85940f441", 14 + .url = "git+https://github.com/rockorager/zeit?ref=main#d943bc4bfe9e18490460dfdd64f48e997065eba8", 15 + .hash = "1220a021c15abe512e13fcf4615ee43f17ed09da80d49a0710116702666a7a04a6dd", 16 16 }, 17 17 .tls = .{ 18 18 .url = "git+https://github.com/ianic/tls.zig#36ae29b0e51fae564222767ffd5d7f60f9a8dd0b",
+2 -2
src/app.zig
··· 385 385 var now_buf: [30]u8 = undefined; 386 386 const now_fmt = try now.time().bufPrint(&now_buf, .rfc3339); 387 387 388 - const past = now.subtract(.{ .days = 7 }); 388 + const past = try now.subtract(.{ .days = 7 }); 389 389 var past_buf: [30]u8 = undefined; 390 390 const past_fmt = try past.time().bufPrint(&past_buf, .rfc3339); 391 391 ··· 1256 1256 defer prev_time = time; 1257 1257 // time_gap is true when the difference between this message and last message is 1258 1258 // greater than 5 minutes 1259 - break :blk (prev_time.timestamp -| time.timestamp) > (5 * std.time.ns_per_min); 1259 + break :blk (prev_time.timestamp_ns -| time.timestamp_ns) > (5 * std.time.ns_per_min); 1260 1260 } else false; 1261 1261 1262 1262 // Print the sender of the previous message
+1 -1
src/irc.zig
··· 431 431 const lhs_time = lhs.time() orelse return false; 432 432 const rhs_time = rhs.time() orelse return false; 433 433 434 - return lhs_time.timestamp < rhs_time.timestamp; 434 + return lhs_time.timestamp_ns < rhs_time.timestamp_ns; 435 435 } 436 436 }; 437 437