| ... | ... | @@ -100,6 +100,7 @@ pub const DateTime = struct { |
| 100 | 100 | if (input >= year_len) { |
| 101 | 101 | result.years += 1; |
| 102 | 102 | input -= year_len; |
| 103 | result.incrementWeekday(year_len); |
| 103 | 104 | continue; |
| 104 | 105 | } |
| 105 | 106 | break; |
| ... | ... | @@ -109,6 +110,7 @@ pub const DateTime = struct { |
| 109 | 110 | if (input >= month_len) { |
| 110 | 111 | result.months += 1; |
| 111 | 112 | input -= month_len; |
| 113 | result.incrementWeekday(month_len); |
| 112 | 114 | |
| 113 | 115 | if (result.months == 12) { |
| 114 | 116 | result.years += 1; |