| ... | ... | @@ -80,7 +80,7 @@ pub const DateTime = struct { |
| 80 | 80 | var input = count; |
| 81 | 81 | |
| 82 | 82 | while (true) { |
| 83 | | const year_len = self.daysThisYear(); |
| 83 | const year_len = result.daysThisYear(); |
| 84 | 84 | if (input >= year_len) { |
| 85 | 85 | result.years += 1; |
| 86 | 86 | input -= year_len; |
| ... | ... | @@ -89,7 +89,7 @@ pub const DateTime = struct { |
| 89 | 89 | break; |
| 90 | 90 | } |
| 91 | 91 | while (true) { |
| 92 | | const month_len = self.daysThisMonth(); |
| 92 | const month_len = result.daysThisMonth(); |
| 93 | 93 | if (input >= month_len) { |
| 94 | 94 | result.months += 1; |
| 95 | 95 | input -= month_len; |
| ... | ... | @@ -103,7 +103,7 @@ pub const DateTime = struct { |
| 103 | 103 | break; |
| 104 | 104 | } |
| 105 | 105 | { |
| 106 | | const month_len = self.daysThisMonth(); |
| 106 | const month_len = result.daysThisMonth(); |
| 107 | 107 | if (result.days + input > month_len) { |
| 108 | 108 | const left = month_len - result.days; |
| 109 | 109 | input -= left; |