title: Java Date from millis - long vs int
body: <p>For the following code:</p>
  
  <pre><code>import java.text.SimpleDateFormat;
  import java.util.Date;
  
  public class TestMain {
  
      public static void main(String[] args) {
          SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
          System.out.println(sdf.format(new Date(1386633600000L)));
          System.out.println(sdf.format(new Date(1386633600 * 1000)));
      }
  
  }
  </code></pre>
  
  <p>I get the following outputs:</p>
  
  <pre><code>10-12-2013
  24-12-1969
  </code></pre>
  
  <p>Why do they differ?</p>