• 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
ERRest and JSON Dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest and JSON Dates


  • Subject: ERRest and JSON Dates
  • From: Ted Archibald <email@hidden>
  • Date: Wed, 28 May 2014 10:46:22 -0600

Been working on a project where I'm consuming JSON from a web app and encountered a problem with dates back and forth.

This is the date format I'm getting from _javascript_ (new Date).toJSON():
2014-05-28T04:27:49.722Z

And this is the date format ERRest seems to want
2014-05-28T04:27:49Z

If I use the _javascript_ date I get errors, but if I remove the '.722' everything works fine.

Is there an easy way to set ERRest to accept the _javascript_ style of date?
 _______________________________________________
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

  • Prev by Date: Wonder addition - updated openbase plugin
  • Next by Date: Re: Wonder addition - updated openbase plugin
  • Previous by thread: Re: Wonder addition - updated openbase plugin
  • Next by thread: Re: Latest working Eclipse/WOLips combination
  • Index(es):
    • Date
    • Thread