From ecdd4198ba9fd1b06e14f08ee898ab0a09291bd2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Apr 2008 05:07:14 -0400 Subject: Increment month days, not months, when calculating a date. --- datetime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datetime.cc') 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; -- cgit v1.2.3