diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:07:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:07:14 -0400 |
commit | ecdd4198ba9fd1b06e14f08ee898ab0a09291bd2 (patch) | |
tree | b180305725c9f88a445bb5cb8ff3a458a470dad0 /datetime.cc | |
parent | a451dd9285cc9c220532691f4b3617f3ab467a17 (diff) | |
download | fork-ledger-ecdd4198ba9fd1b06e14f08ee898ab0a09291bd2.tar.gz fork-ledger-ecdd4198ba9fd1b06e14f08ee898ab0a09291bd2.tar.bz2 fork-ledger-ecdd4198ba9fd1b06e14f08ee898ab0a09291bd2.zip |
Increment month days, not months, when calculating a date.
Diffstat (limited to 'datetime.cc')
-rw-r--r-- | datetime.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datetime.cc b/datetime.cc index 13789700..040c3046 100644 --- a/datetime.cc +++ b/datetime.cc @@ -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; |