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