mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fixed %F output modified in description of NSCalendarDate (and implicitly
NSDate) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10794 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9e0dd41e9d
commit
88992c8d7d
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-08-28 Georg Fleischmann <georg@vhf.de>
|
||||
|
||||
* base/Source/NSCalendarDate.m [NSCalendarDate
|
||||
descriptionWithCalendarFormat:locale:]: make milliseconds
|
||||
work (%F)
|
||||
|
||||
2001-08-28 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/objc-gnu2next.h: More defs.
|
||||
|
|
|
@ -1334,10 +1334,10 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
s = ([self dayOfCommonEra] - GREGORIAN_REFERENCE) * 86400.0;
|
||||
s -= (_seconds_since_ref
|
||||
+ [_time_zone secondsFromGMTForDate: self]);
|
||||
s = abs(s);
|
||||
s = fabs(s);
|
||||
s -= floor(s);
|
||||
++i;
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%03d", (int)s*1000));
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%03d", (int)(s*1000)));
|
||||
j += k;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue