mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor fix to use default local when parsing a string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4629 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
42d703379f
commit
e8a4e32f2c
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 20 15:45:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSCalendarDate.m: ([initWithString:calendarFormat:locale:])
|
||||
updated to get default format and locale info.
|
||||
|
||||
Tue Jul 20 10:12:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSString.m: Update code for standardising paths - now
|
||||
|
|
|
@ -196,9 +196,11 @@
|
|||
if (!description)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"NSCalendar date description is nil"];
|
||||
if (!format)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"NSCalendar date format is nil"];
|
||||
|
||||
if (locale == nil)
|
||||
locale = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
|
||||
if (format == nil)
|
||||
format = [locale objectForKey: NSTimeDateFormatString];
|
||||
|
||||
// The strftime specifiers
|
||||
// %a abbreviated weekday name according to locale
|
||||
|
|
Loading…
Reference in a new issue