Sarat M Kumar wrote:Thanks a lot for your replies ..
My application is running on my localserver@India ( with hibernate as ORM and Oracle as DB) . Here is how I am setting date "u.setCreateDate(getAppDate());" Refer Thread 1 in the post .
Date saved in DB is showing as local time of Inida: 09 JAN ,2013 23:55 PM
Sarat M Kumar wrote:Current Time there=Wed Jan 09 13:59:06 IST 2013 [ Displays the current time at 'Newyork']
Sarat M Kumar wrote:getAppDate() and setCreateDate() uses Date Objects
Batch job logic : select * from USER where CREATE_DATE BETWEEN (sysdate-10/1440) AND sysdate;
sysdate-10/1440 : returns 10 minutes before current sysdate of DB .
DB server is running at "Newyork" with EST timezone
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Sarat M Kumar wrote:Conclusion: Calendar.getInstance(TimeZone) method sets "isTimeSet" flag to false .Hence Recomputation of TimeInMillsSec is not happening .
Thanks a lot for all , who help me ..
Not sure if I explained my understanding properly . Now I am clear with concepts of calendar , timezone, date.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |