tweak twelve hour clock support.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31087 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-08-07 05:02:28 +00:00
parent 00b4589f91
commit 916036fa6d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-08-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: Fix for %p AM/PM parsing to implicitly set
us to use twelve hour clock.
2010-08-06 Doug Simons <doug.simons@testplant.com>
* Source/NSCalendarDate.m: Fix to AM/PM parsing to recognize

View file

@ -1167,6 +1167,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
* matching for longest values first, rather than (wrongly)
* assuming the name is always two uppercase letters.
*/
twelveHrClock = YES;
tmpStr[0] = toupper(source[sourceIdx]);
if (sourceIdx < sourceLen)
sourceIdx++;