title: migrate from Joda time library to Java time (Java 8)
body: <p>Our software architect made decision to remove Joda time library from our project dependencies and to use features of Java 8 time. I am doing research of our project and I am trying to find all places where we are using Joda time lib and determine what actually we are using (joda <code>LocalDate</code>, <code>DateTime</code>, etc.).<br>
  I am not an expert of Joda time library and I not an expert of Java 8 time, so I have some questions:<br>
  In code I saw a lot of places like this:</p>
  
  <pre><code>DateTime jodaDateTime = new DateTime();
  doSomething(jodaDateTime.toDate()); 
  </code></pre>
  
  <p>I am a little bit confused. </p>
  
  <p>(<strong>Q1</strong>) Does it make any sense to use joda 
  <code>DateTime</code> in this particular case? I believe, that we can use just classic <code>java.util.Date</code> and we do not need Joda:</p>
  
  <pre><code>java.util.Date date = new Date();
  doSomething(date);
  </code></pre>
  
  <p>Correct?</p>
  
  <p>Also, I saw this piece of code:</p>
  
  <pre><code>org.joda.time.DateTime jodaDateTime = new DateTime();
  org.joda.time.DateTime jodaDateTimeInPast = jodaDateTime.minusSeconds(60);
  doSomething(jodaDateTimeInPast.toDate());
  </code></pre>
  
  <p>I think, that java 8 time API provides the great support for calculating any dates in the past, so I have idea how to replace the piece of code above to Java 8:  </p>
  
  <pre><code>LocalDatetime java8DateTime = LocalDateTime.now();
  LocaldateTime java8DateTimeInPast = java8DateTime.minusSeconds(60);
  Date java8Date = Date.from(java8DateTimeInPast.atZone(ZoneId.systemDefault()).toInstant());
  doSomething(java8Date);
  </code></pre>
  
  <p>(<strong>Q2</strong>) Have I done it in the right way? I am not sure on 100%. 
  I just found this link with a table: "<a href="http://blog.joda.org/2014/11/converting-from-joda-time-to-javatime.html" rel="noreferrer">Converting from Joda-Time to java.time</a>" 
  There are I found info, that I need to use <code>java.time.ZonedDateTime</code> or <code>java.time.OffsetDateTime</code> classes, but not <code>java.time.LocalDateTime</code>, because <code>LocalDateTime</code> -</p>
  
  <blockquote>
    <p>Same concept - date and time without time-zone</p>
  </blockquote>
  
  <p>Please confirm that my refactoring is correct (for <strong>Q1</strong> and <strong>Q2</strong>).</p>