mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
00b4589f91
commit
916036fa6d
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue