title: Get LocalDateTime from a DateTimeObject
body: <p>I'm having problems with getting the local time using Joda Time library. Here's a simple example of what I'm trying to do.</p>
  
  <pre><code>package simple;
  
  import org.joda.time.DateTime;
  import org.joda.time.DateTimeZone;
  import org.joda.time.LocalDateTime;
  import org.joda.time.format.DateTimeFormat;
  import org.joda.time.format.DateTimeFormatter;
  
  public class TestJodaLocalTime {
  
      public static void main(String[] args) {
          //time in UTC standard
          DateTime processingDate = DateTime.now();
          //local time
          LocalDateTime localDateTime = processingDate.
                  withZone(DateTimeZone.getDefault()).toLocalDateTime();
  
          DateTimeFormatter fmtDate = DateTimeFormat.forPattern("dd/MM/yyyy");
          DateTimeFormatter fmtHour = DateTimeFormat.forPattern("HH:mm:ss");
  
          System.out.println("Date: " + fmtDate.print(processingDate));
          System.out.println("Time: " + fmtHour.withZone(DateTimeZone.UTC).
                  print(processingDate));
          System.out.println("Local date: " + fmtDate.print(localDateTime));
          System.out.println("Local time: " + fmtHour.print(localDateTime));
  
      }
  
  }
  </code></pre>
  
  <p>I was expecting that, when printing the local time, I would get the time on the timezone from where my application is running, but I got an identical time to the UTC DateTime.</p>
  
  <pre><code>Date: 06/12/2012
  Time: 12:55:49
  Local date: 06/12/2012
  Local time: 12:55:49
  </code></pre>
  
  <p>What did I missed here?</p>