mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix a bug where the date format of the the formatter was reset when
you called -setTimeZone: -setLocale: or similar methods that require recreating the UDateFormat (i.e. with ICU). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38463 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
422356c19f
commit
67ee1eaf7b
2 changed files with 10 additions and 1 deletions
|
@ -986,7 +986,11 @@ static NSDateFormatterBehavior _defaultBehavior = 0;
|
|||
&err);
|
||||
if (U_FAILURE(err))
|
||||
internal->_formatter = NULL;
|
||||
|
||||
if (nil != self->_dateFormat)
|
||||
{
|
||||
// Set the date format to the user provide one
|
||||
[self setDateFormat: _dateFormat];
|
||||
}
|
||||
NSZoneFree ([self zone], tzID);
|
||||
#else
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue