diff --git a/include/date.hpp b/include/date.hpp index 9eda0f8..9c94dcc 100644 --- a/include/date.hpp +++ b/include/date.hpp @@ -323,7 +323,7 @@ struct date { // Update the year if necessary if(_month > 12){ *this += years((_month - 1) / 12); - _month = (_month) % 12; + _month = _month % 12; } // Update the day of month, if necessary