• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with %z in NSTimestampFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with %z in NSTimestampFormatter


  • Subject: Re: Problem with %z in NSTimestampFormatter
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 22 Jul 2015 14:39:32 +0000
  • Thread-topic: Problem with %z in NSTimestampFormatter

He lives!  Hi Pascal!

Where is the exception thrown from? Do you have a stack trace?

Chuck

On 2015-07-22, 7:32 AM,
"webobjects-dev-bounces+chill=email@hidden on behalf of
Pascal Robert" <webobjects-dev-bounces+chill=email@hidden
on behalf of email@hidden> wrote:

>Hi,
>
>Yes, I'm still alive. Anyway, I'm trying to build a small REST app as a
>prototype, and I need to parse a date that have this format:
>
>  2015-07-22T08:43:43-0400
>
>So I did:
>
>  protected ERXRestContext createRestContext() {
>    ERXRestContext restContext = new ERXRestContext(editingContext());
>    restContext.setUserInfoForKey("%Y-%m-%d'T'%H:%M:%S%z",
>"er.rest.timestampFormat");
>    return restContext;
>  }
>
>But I get an exception saying it's an illegal format. The problem is %z,
>if I remove that part, it works (as long as I remove -0400 from the
>date). It this a bug specific to WO 5.4 ??
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Webobjects-dev mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>om
>
>This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Problem with %z in NSTimestampFormatter (From: Pascal Robert <email@hidden>)

  • Prev by Date: Problem with %z in NSTimestampFormatter
  • Next by Date: Re: Problem with %z in NSTimestampFormatter
  • Previous by thread: Problem with %z in NSTimestampFormatter
  • Next by thread: Re: Problem with %z in NSTimestampFormatter
  • Index(es):
    • Date
    • Thread