diff --git a/src/render/Custom.zig b/src/render/Custom.zig index 04e246f..0f9a57b 100644 --- a/src/render/Custom.zig +++ b/src/render/Custom.zig @@ -100,7 +100,10 @@ pub fn render(writer: *std.Io.Writer, weather: types.WeatherData, format: []cons } fn nowAt(coords: Coordinates) !i64 { - const now = try zeit.instant(.{}); + const now = if (@import("builtin").is_test) + (try zeit.Time.fromISO8601("2026-01-09")).instant() + else + try zeit.instant(.{}); const offset = TimeZoneOffsets.getTimezoneOffset(coords); const new = if (offset >= 0) try now.add(.{ .minutes = @abs(offset) })