Yes, there is a bug in the initWithDateFormat:allowNaturalLanguage: method. It should be calling the setDateFormat: method and that on the other side should be using ASSIGNCOPY. Hope that somebody beats me in fixing that.
Fred
On the road Hi
NSDateFormatter's initWithDateFormat seem to ignore or misinterpret the format string.
Creating with init, and then calling setDateFormat gives the correct output.
Something I just noticed and I can look into later but now I'm rather busy for the exhibition in Barcelona next week..
Best regards
-- Johannes Lundberg BRILLIANTSERVICE CO., LTD.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。---CONFIDENTIALITY NOTE: The information in this email is confidentialand intended solely for the addressee.Disclosure, copying, distribution or any other action of use of thisemail by person other than intended recipient, is prohibited.If you are not the intended recipient and have received this email inerror, please destroy the original message.
|