Reading Client Side Time Zone in Server Side java class
<p>I have a client side program that sends a time to the server side program. <br>
I am using Callendar object to pass the time values from client to server.<br>
My client program is located at the Sri Lanka and the server is located at the UK.<br>
When I am sending the time(Ex : 2011-11-21T12:43:41.352+05:30) in client side, as usually the time converting to UK Time at the server (Ex : 2011-11-21T07:13:411.352+00:00). <br>
What I want to do is I want to get the time that I am sending in the client program with the Time Zone in the client program.(In simple terms, I want to read the time in server without TimeZone conversions applying to the time that is sent by the client side program. So in the server I want to get the time as 2011-11-21T12:43:41.352+05:30 not as 2011-11-21T07:13:411.352+00:00).<br></p>

<p>Can I know is this possible with java to do and if yes how?</p>

<p><strong>Client Side :</strong></p>

<pre><code>Calendar cal1 = Calendar.getInstance();
Date indate = new Date(); // this shows as 2011-11-21T12:43:41.352+05:30
searchDateRange_type0.setStart(cal1);
cal1.setTime(inDate); 
</code></pre>

<p><strong>Serever Side :</strong> </p>

<pre><code>SearchDateRange_type0 serachDaterange= criterion_type.getSearchDateRange();
checkInDate     = serachDaterange.getStart().getTime(); //I read this as 2011-11-21T07:13:411.352+00:00
</code></pre>
