Minor bugfix - '%y' description for dates corrected

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-05-07 18:39:15 +00:00
parent 6b1e6ce20f
commit 5fe85e54c3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-05-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: ([-descriptionWithCalendarFormat:locale:])
fix '%y' format for any year - bug reported by David Relson
2000-05-06 James Dessart <skwirl@cam.org>
* Documentation/gsdoc/NSString.gsdoc :

View file

@ -992,7 +992,7 @@
if (ycent)
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%04d", yd));
else
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%02d", (yd - 1900)));
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%02d", yd % 100));
j += k;
break;