This issue is fixed. Thanks everyone :-)

Krishna Kurnala.

On Jul 30, 2012, at 11:34 AM, Christopher Schultz 
<ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Konstantin,
> 
> On 7/29/12 9:21 PM, Konstantin Kolinko wrote:
>>>> When you are saying that it is "still in UTC", what data are
>>>> you looking at?
>>>> 
>> 
>> You have not answered the above question. It might be that the
>> date you are looking at explicitly uses the UTC timezone.
> 
> Also, Tomcat doesn't really care what time zone you are in. It's best
> to think of all times are being time-zone-less and then apply a time
> zone merely for output purposes.
> 
> Unfortunately, lots of the Java date and time APIs have some hidden
> time zone stuff. For instance, java.util.Date has a timezone offset
> that I believe gets set to the JVM's native timezone offset (UTC in
> your case?) but you can't change it. So, when you want to do anything
> with java.util.Date, you have to adjust for that.
> 
> Likewise, java.text.SimpleDateFormat contains a time zone which
> defaults to the JVM's timezone, but does not have a constructor that
> accepts a time zone. So, you need to set the time zone through a
> separate method before doing anything with SimpleDateFormat.
> 
> Of course, Sun/Oracle have deprecated pretty much all of the
> java.util.Date API in favor of java.util.Calendar, but then completely
> failed to support Calendar with DateFormat and java.sql.*.
> 
> Just wait: JSR 310 promises to solve all of these problems by
> providing a new API similar to Jodatime that will probably end up
> failing us all miserably.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAlAW07QACgkQ9CaO5/Lv0PCt6QCff6Ts+fonxw81pZK/1Ib6wrOe
> mRYAn3hdzIYznmly+vNwjUG9zVz6bw1b
> =Cote
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to