Increment month days, not months, when calculating a date.
This commit is contained in:
parent
a451dd9285
commit
ecdd4198ba
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ datetime_t interval_t::increment(const datetime_t& moment) const
|
|||
if (months)
|
||||
desc->tm_mon += months;
|
||||
if (days)
|
||||
desc->tm_mon += days;
|
||||
desc->tm_mday += days;
|
||||
|
||||
desc->tm_hour += hours;
|
||||
desc->tm_min += minutes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue