From 94b512933f9e9a665ef30f466bb71a3774840239 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 23 Oct 2021 23:12:51 -0700 Subject: [PATCH] fix weekday progression. was only being updated at the end --- time.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/time.zig b/time.zig index e5e357b77bc81b0031367a0d7eb1414ac18bcad6..e7d570ba3076b409270665b11bcee191215726ab 100644 --- a/time.zig +++ b/time.zig @@ -100,6 +100,7 @@ pub const DateTime = struct { if (input >= year_len) { result.years += 1; input -= year_len; + result.incrementWeekday(year_len); continue; } break; @@ -109,6 +110,7 @@ pub const DateTime = struct { if (input >= month_len) { result.months += 1; input -= month_len; + result.incrementWeekday(month_len); if (result.months == 12) { result.years += 1; -- 2.54.0