title: Groovy : datetime delta and JsonOutput.toJson
body: <p>I'm trying to return some data from the database. When I call the method <a href="http://docs.groovy-lang.org/2.4.0/html/gapi/groovy/json/JsonOutput.html" rel="nofollow noreferrer"><code>JsonOutput.toJson()</code></a> with the provided data, it automatically changes the delta of my datatime.</p>
  
  <p>This is my code : </p>
  
  <pre><code>def result = groovy.json.JsonOutput.toJson(data)
  
  println(data)
  println(result)
  
  response.setContentType("application/json");
  </code></pre>
  
  <p>The first prints the following:</p>
  
  <pre><code>[[ DateStart:2019-01-14 09:34:51.0, DateEnd:2019-01-14 10:27:22.68]]
  </code></pre>
  
  <p>And the second after the json formatting show another date (hours - 1) :</p>
  
  <pre><code>[{"DateStart":"2019-01-14T08:34:51+0000","DateEnd":"2019-01-14T09:27:22+0000"}]
  </code></pre>
  
  <p>Any tips to format to JSON without changing any date/delta?</p>