mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
547019de6d
commit
c1ecdb91ac
2 changed files with 10 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue