Date update in database

hi everyone,

I am curently using a EJB arct. on a Weblogic server.

I have a swing client contacting the server. I have a Oracle database. My problem is , When ever I set a date in the client, it goes one day less (exactly 5.30hrs less)to the server and get updated in the database.When it goes from the client its correct , but in the server log it is one day less.

What could be the reason for this happening.

Thanx in advance

Raju

[483 byte] By [arsiva] at [2007-9-26 3:29:31]
# 1
You need to clarify your problem. Is your client and server's system time set correctly? How exactly do you set date? You mean sending a date string from client to be saved in DB?
yilin at 2007-6-29 11:54:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Though your issue is not clear , I would think of two possibilities ...1. Some where in the code you are doing a System.currentTimeMillis() and setting the date which would be the time where your AS is running .2.You are converting the time to GMT !!!
mohanN at 2007-6-29 11:54:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
I have to agree with mohan, the time you mentioned 51/2 hrs may be you are referring somewhere in your application to GMT
DiwakarK at 2007-6-29 11:54:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...