title: java.sql.Date to joda time conversion
body: <p>oracle sql:</p>
  
  <pre><code>select trunc( sysdate, 'Month') month
  from dual
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>java.sql.Date sqlDate = resultSet.getDate("month");
  log.info(sqlDate);
  DateTime dateTime = new DateTime(sqlDate.getTime());
  log.info(dateTime);
  dateTime = dateTime.withMillisOfDay(0);
  log.info(dateTime);
  </code></pre>
  
  <p>output:</p>
  
  <p>2012-01-01</p>
  
  <p>2012-01-01T <strong>01</strong>:00:00.000+07:00</p>
  
  <p>2012-01-01T <strong>00</strong>:00:00.000+07:00</p>
  
  <p>where did the extra hour?</p>