title: Java CurrenTimeMilis not matching
body: <p>I am having an issue in my java program.</p>
  
  <p>I am using timestamps to peform a query on the database, but I am getting the wrong timestamp.</p>
  
  <p>On my VM, I have the date set to be pacific time:</p>
  
  <pre><code>date
  
  Wed Oct 30 09:50:43 PDT 2013
  </code></pre>
  
  <p>also</p>
  
  <pre><code>timedatectl status
  
    Local time: Wed 2013-10-30 09:52:30 PDT
  Universal time: Wed 2013-10-30 16:52:30 UTC
      Timezone: US/Pacific (PDT, -0700)
   NTP enabled: yes
  NTP synchronized: no
  RTC in local TZ: no
       DST active: yes
   Last DST change: DST began at
                   Sun 2013-03-10 01:59:59 PST
                   Sun 2013-03-10 03:00:00 PDT
   Next DST change: DST ends (the clock jumps one hour backwards) at
                Sun 2013-11-03 01:59:59 PDT
                Sun 2013-11-03 01:00:00 PST
  </code></pre>
  
  <p>but when my program does system.getCurrentMilis() is is returning the following timestamp:</p>
  
  <pre><code>2013-10-30 11:47:16.884
  </code></pre>
  
  <p>I am not sure why this is the case.  If someone could tell me what is wrong or what i could check that would be awesome</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:</p>
  
  <pre><code>//- Get maximum timestamp from previous query
  Timestamp maxTimestamp = (new Timestamp( System.currentTimeMillis() ) ;
  
  
  //- Compute query parameters (see notes above)
  Timestamp lowerLimit = new Timestamp( maxTimestamp.getTime() - 500) ;
  System.out.println("lowerLimit=" + lowerLimit ) ;
  Timestamp upperLimit = new Timestamp( System.currentTimeMillis());
  System.out.println("upperLimit=" + upperLimit ) ;
  </code></pre>