[fdo-trac] #478: Addmonth() returns invalid date time

FDO trac_fdo at osgeo.org
Fri Mar 13 17:34:56 EDT 2009


#478: Addmonth() returns invalid date time
------------------------------+---------------------------------------------
 Reporter:  romicadascalescu  |         Owner:  romicadascalescu
     Type:  defect            |        Status:  closed          
 Priority:  major             |     Milestone:  3.5.0           
Component:  FDO API           |       Version:  3.4.0           
 Severity:  3                 |    Resolution:  fixed           
 Keywords:                    |   External_id:                  
------------------------------+---------------------------------------------
Changes (by romicadascalescu):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 There was a wrong sign when we calculated the resulted Month.
 replaced "dt.month = 12 - (curr_month + num_of_months);"
 with
 "dt.month = 12 + (curr_month + num_of_months);"

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/478#comment:1>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list