title: Joda Time subtracting 24 hours from an instance of MutableDateTime, I would like to know why
body: <p>I do not understand why <code>MutableDateTime.setDate()</code> is setting the time to "yesterday" (see the log timestamp hours - it is 20:28).  Is this timezone related?  Do I need to set something on the formatter?</p>
  
  <p>I would expect that after calling setDate with "10/27/2010", the date would be the same as the parsed date 00:00 EDT 10/27/10, instead of 20:28 EDT 10/26/10.  This is 24 hours ago from "now".</p>
  
  <p>What am I missing here, or how should I edit the code to get the desired result?  I am new to Joda Time, and would like to solve this mystery.</p>
  
  <pre><code>DateTimeFormatter dateFormatterJ = DateTimeFormat.forPattern("MM/dd/yyyy");
  DateTimeFormatter timestampFormatJ = DateTimeFormat.forPattern("HH:mm zzz MM/dd/yy");
  
  MutableDateTime startDate = new MutableDateTime();
  
  log.info("parsed date " + 
      timestampFormatJ.print(dateFormatterJ.parseMutableDateTime(startDateString)));
  
  startDate.setDate((dateFormatterJ.parseMutableDateTime(startDateString)));
  
  log.info("startDate: " + timestampFormatJ.print(startDate));
  </code></pre>
  
  <p>In this case, <code>startDateString</code> is simply "10/27/2010".</p>
  
  <p>here is the log output:</p>
  
  <pre><code>10-27 20:28:55 INFO parsed date: 00:00 EDT 10/27/10
  10-27 20:28:55 INFO startDate: 20:28 EDT 10/26/10
  </code></pre>
  
  <p>Thanks</p>