I have a ruby-on-rails
server that implements a JSON
REST
API e.g.
http://my-server.com/end_of_promotion.json
Currently, the answer is:
{
date: "2013-03-31T14:29:16Z"
}
In my model
, date is an attribute of type: datetime
.
Now, I would like the client to display this date in the user timezone. How should I design the API and the client code to make it happen?