[bug #47661] regression in -[NSCalendarDate(OPENSTEP) dateByAddingYears:months:days:hours:minutes:seconds:]

Tim Ooms <[email protected]>
Newsgroups gmane.comp.lib.gnustep.bugs
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/bugs/?47661>

                 Summary: regression in -[NSCalendarDate(OPENSTEP)
dateByAddingYears:months:days:hours:minutes:seconds:]
                 Project: GNUstep
            Submitted by: timooms
            Submitted on: Mon 11 Apr 2016 10:27:54 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Between version 1.24.6 and 1.24.9 (and still in the latest version) there is a
regression in the function
dateByAddingYears:months:days:hours:minutes:seconds: of NSCalendarDate.

Example input:
2016-01-06 01:00:00 +0100
years, months, days, hours, minutes = 0
seconds = -3600
gives in 1.24.9 as result: 2152-02-12 06:28:16 +0000
in 1.24.6, the result is: 2016-01-06 00:00:00 +0100




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47661>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.