Skip to content

Commit

Permalink
[fix] month and year addition in impl Add for AggregateDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
4DA committed Dec 6, 2021
1 parent 13c6b48 commit 8d77987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ impl Add for AggregateDuration {
fn add(self, other: Self) -> Self {
Self {day: self.day + other.day,
week: self.week + other.week,
month: self.week + other.week,
year: self.week + other.week,
month: self.month + other.month,
year: self.year + other.year,
total: self.total + other.total,
}
}
Expand Down

0 comments on commit 8d77987

Please sign in to comment.