tags:

views:

23

answers:

2

greetings all i have a problem that when sending an email from the server to the client using javax mail and set the sentDate to

message.setSentDate(new Date());

the email is sent in the server time and the client receive the email immediately with time 5 hours ago ???? how to fix this to send and receive in correct timing ?

A: 

You might have to consider the timezones of client and the server and do the necessary calculation (usually done in the client end).

bdhar
it was a server incorrect time problemi set the time and the timezone to GMT and it works fine now
sword101
A: 

it was a server incorrect time problem i set the time and the timezone to GMT and it works fine now

sword101