Why date.gettime() always returns Previous Date, not today's date in java?
<p>I have following code, running on Unix server (WAS 5.1), it's a test environment in our company. When I try to execute the below code, I always get yesterday's date (i.e if I execute today 9/27/2012 it returns date as 9/26/2012)</p>

<pre><code>long userSelectedTimeLong = date.getTime()
</code></pre>
