mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
NSCalendarDate.m - dateByAddingYears lost timezone info.
- initWithString didn't deal with adjacent format specifiers. NSDate.m - addTimeInterval messed up timezone if used with CalendarDate. NSArray.m - NSMutableArray's comparered against a garbage pointer NSGArray.m on removal. This causes real problems on SMP machines. NSTimeZone.m - The GMT+-xx files on OpenStep are in the root directory and they are in Etc/* in gnustep so check both. NSObject.m - The release code was slightly broken for SMP machine use. NSLock.m - Trylock was broken and lockBeforeDate unimplemented. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5436 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c3fb857b06
commit
b35bbfad7e
7 changed files with 479 additions and 291 deletions
|
@ -1118,8 +1118,13 @@ GSTimeNow()
|
|||
- (id) addTimeInterval: (NSTimeInterval)seconds
|
||||
{
|
||||
/* xxx We need to check for overflow? */
|
||||
return [concreteClass dateWithTimeIntervalSinceReferenceDate:
|
||||
_seconds_since_ref + seconds];
|
||||
id newObj = [[self class] dateWithTimeIntervalSinceReferenceDate:
|
||||
_seconds_since_ref + seconds];
|
||||
|
||||
if ([self isKindOfClass: [NSCalendarDate class]])
|
||||
[newObj setTimeZone: [(NSCalendarDate *) self timeZoneDetail]];
|
||||
|
||||
return newObj;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) timeIntervalSince1970
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue