marklogic/marklogic-samplestack — pull request #400 by laurelnaiad (2014-12-30 08:27:35+00:00)
Title: Timezone

(There are a few minor commits prior to the timezone commit)

@grechaw this isn't ready for merge because the presence of the timezone parameter breaks the search, but this is the browser side for you to evaluate/implement the Java support.

Add timezone property to search parameters.

BREAKING CHANGE: the server rejects this query because the new parameter
is not expected.

```
{
"data":{
"status":400,
"message":"com.marklogic.client.FailedRequestException: Local message: search failed: Bad Request. Server Message: XDMP-ARGTYPE: (err:XPTY0004) fn:node-name((sort:active, America/Los_Angeles)) -- arg1 is not of type node()?"
},
"status":400,
"config":{
"method":"POST",
"transformRequest":[
null
],
"transformResponse":[
null
],
"url":"/v1/search",
"data":{
"query":{
"qtext":[
"",
"sort:active"
]
},
"start":1,
"timezone":"America/Los_Angeles"
},
"timeout":30000,
"headers":{
"Accept":"application/json, text/plain, /",
"Content-Type":"application/json;charset=utf-8"
}
},
"statusText":"Bad Request"
}
```