title: Groovy: Date clearTime() question
body: <p>So why does this work:</p>
  
  <pre><code>requestInstance.needByDate = new Date() + 4
  requestInstance.needByDate.clearTime()
  </code></pre>
  
  <p>But this doesn't ?</p>
  
  <pre><code>requestInstance.needByDate= (new Date() + 4).clearTime()
  </code></pre>
  
  <p><strong>EDIT</strong>: as indicated below by Tim this is a bug in Groovy version: 1.7.9-SNAPSHOT (the one I am using of course)</p>