mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Fix bug subtracting minutes from date.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21677 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
532b855870
commit
8bb5a81e4a
3 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-08-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSCalendarDate.m: Fix bug subtracting minute interval.
|
||||||
|
|
||||||
2005-08-22 Adam Fedor <fedor@gnu.org>
|
2005-08-22 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect,
|
* Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect,
|
||||||
|
|
|
@ -2414,7 +2414,7 @@ static void Grow(DescriptionInfo *info, unsigned size)
|
||||||
minute %= 60;
|
minute %= 60;
|
||||||
if (minute < 0)
|
if (minute < 0)
|
||||||
{
|
{
|
||||||
hours++;
|
hours--;
|
||||||
minute += 60;
|
minute += 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ main()
|
||||||
id pool;
|
id pool;
|
||||||
|
|
||||||
//behavior_set_debug(0);
|
//behavior_set_debug(0);
|
||||||
|
|
||||||
pool = [[NSAutoreleasePool alloc] init];
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
NSLog(@"%@", [NSCalendarDate distantFuture]);
|
NSLog(@"%@", [NSCalendarDate distantFuture]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue