<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-19558777.post2405944243677843412..comments</id><updated>2010-07-16T00:48:37.425-04:00</updated><category term='Tools I Use'/><category term='flash'/><category term='technology'/><category term='finance'/><category term='javascript'/><category term='bugs'/><category term='maven'/><category term='gwt'/><category term='mvn'/><category term='Threads'/><category term='memcache'/><category term='Politics'/><category term='home'/><category term='firefox'/><category term='osgi'/><category term='travel'/><category term='iphone'/><category term='webtools'/><category term='continued'/><category term='css'/><category term='git'/><category term='python'/><category term='tips'/><category term='spring'/><category term='enterprise'/><category term='sports'/><category term='video'/><category term='iBatis'/><category term='developer'/><category term='eclipse'/><category term='image'/><category term='code'/><category term='jee'/><category term='webtech'/><category term='linux'/><category term='soupdates'/><category term='Telugu'/><category term='nontech'/><category term='mysql'/><category term='java'/><category term='FeelGood'/><category term='scalability'/><category term='security'/><category term='Green'/><category term='voip'/><category term='thanks'/><category term='dilbert'/><category term='ux'/><category term='india'/><category term='advanced'/><category term='weekend'/><category term='mongodb'/><category term='OpenSource'/><category term='Google'/><category term='movie'/><category term='wishes'/><category term='android'/><category term='scrum'/><category term='tutorials'/><category term='appengine'/><category term='vegetarian'/><category term='design'/><category term='fun'/><category term='ubuntu'/><category term='Dobbs Journal'/><title type='text'>Comments on Sarath Chandra Pandurangi's Blog: Java TimeZone ++: mapping Calendar to Oracle Date ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.sarathonline.com/feeds/2405944243677843412/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default'/><link rel='alternate' type='text/html' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html'/><author><name>Sarath Chandra Pandurangi</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3jYCb9A5iJY/SHutwnT9NaI/AAAAAAAAB94/gRV45M5tDn8/s1600-R/0b473b1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19558777.post-542909920670295674</id><published>2010-07-16T00:48:37.420-04:00</published><updated>2010-07-16T00:48:37.420-04:00</updated><title type='text'>Srinivas,

It is strange issue. I would look at tw...</title><content type='html'>Srinivas,&lt;br /&gt;&lt;br /&gt;It is strange issue. I would look at two things.&lt;br /&gt;&lt;br /&gt;1. Logic that is storing converting to GMT. Put it good test. , serialize it to string, pass over a webservice. As long as you are using the SAME (inverted ofcourse) logic to read back the date, You should not have &lt;br /&gt;&lt;br /&gt;2. Run select query in sqlplus (no jdbc there). and see the out put. It might just be that display is GMT+1.&lt;br /&gt;&lt;br /&gt;Also Note: DATE datatype is not safe to store Timezone information in oracle. Use TIMESTAMP instead. Some oracle db versions have TZ information also storable. they have a default (database TZ) set. You be carefull around that</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/542909920670295674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/542909920670295674'/><link rel='alternate' type='text/html' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html?showComment=1279255717420#c542909920670295674' title=''/><author><name>Sarath Chandra Pandurangi</name><uri>http://www.blogger.com/profile/11373676873027898680</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3jYCb9A5iJY/SHutwnT9NaI/AAAAAAAAB94/gRV45M5tDn8/s1600-R/0b473b1.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html' ref='tag:blogger.com,1999:blog-19558777.post-2405944243677843412' source='http://www.blogger.com/feeds/19558777/posts/default/2405944243677843412' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1959738900'/></entry><entry><id>tag:blogger.com,1999:blog-19558777.post-9005104518225954951</id><published>2010-07-15T17:42:38.730-04:00</published><updated>2010-07-15T17:42:38.730-04:00</updated><title type='text'>Hi Sarath

I have a question, am using hibernate h...</title><content type='html'>Hi Sarath&lt;br /&gt;&lt;br /&gt;I have a question, am using hibernate hbm config to read/write oracle database. I have a DATE datatype that stores date &amp;amp; time in oracle table and in java java.utils.date. Programatically am converting java date object to GMT and trying to store in database. But always datetime is stored as GMT +1hr. In hibernate hbm config type=&amp;quot;timestamp&amp;quot; &amp;amp; sql-type=&amp;quot;date&amp;quot;.&lt;br /&gt; &lt;br /&gt;Requirement is to store datetime in GMT. Note that not all datetimes in system are stored in GMT.&lt;br /&gt;&lt;br /&gt;Appreciate your help!&lt;br /&gt;&lt;br /&gt;thanks and regards,&lt;br /&gt;Srinivas</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/9005104518225954951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/9005104518225954951'/><link rel='alternate' type='text/html' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html?showComment=1279230158730#c9005104518225954951' title=''/><author><name>Srinivas</name><uri>http://www.blogger.com/profile/01961562470942470093</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html' ref='tag:blogger.com,1999:blog-19558777.post-2405944243677843412' source='http://www.blogger.com/feeds/19558777/posts/default/2405944243677843412' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-420494071'/></entry><entry><id>tag:blogger.com,1999:blog-19558777.post-1234448575319602214</id><published>2009-04-15T03:34:00.000-04:00</published><updated>2009-04-15T03:34:00.000-04:00</updated><title type='text'>The Code snippets given do the exact thing. 

Cons...</title><content type='html'>The Code snippets given do the exact thing. &lt;br /&gt;&lt;br /&gt;Consider the first snippet,&lt;br /&gt;in your case, You have to set networkCal to GMT+02:00 &lt;br /&gt;your userDate is in GMT+01:00.&lt;br /&gt;&lt;br /&gt;Ex: a time of 2009-04-15 12:00 GMT+01:00 (user date) after doing&lt;br /&gt; ps.setTimestamp(2, new Timestamp(userDate.getTime()), networkCal);&lt;br /&gt; will evaluate to store "2009-04-15 11:00:00" in the DB [observe - it doesnot store Timezone info, format may change based on your db]. Which is what you want.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/1234448575319602214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/1234448575319602214'/><link rel='alternate' type='text/html' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html?showComment=1239780840000#c1234448575319602214' title=''/><author><name>Sarath Chandra Pandurangi</name><uri>http://www.blogger.com/profile/11373676873027898680</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3jYCb9A5iJY/SHutwnT9NaI/AAAAAAAAB94/gRV45M5tDn8/s1600-R/0b473b1.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html' ref='tag:blogger.com,1999:blog-19558777.post-2405944243677843412' source='http://www.blogger.com/feeds/19558777/posts/default/2405944243677843412' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1959738900'/></entry><entry><id>tag:blogger.com,1999:blog-19558777.post-3033943790238538384</id><published>2009-03-26T08:57:00.000-04:00</published><updated>2009-03-26T08:57:00.000-04:00</updated><title type='text'>Hello,&lt;br&gt;&lt;br&gt;I have a question - what about a sit...</title><content type='html'>Hello,&lt;BR/&gt;&lt;BR/&gt;I have a question - what about a situation when I want my date 'face value' not to be converted to the given in the calendar timezone but i want to store the date with the specified timezone in the database? The timezone on my machine is GMT+01:00 and the same id DBTIMEZONE but i want to store timestamp with timezone = GMT+02:00? Is it possible?&lt;BR/&gt;&lt;BR/&gt;Regards,&lt;BR/&gt;Ania</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/3033943790238538384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19558777/2405944243677843412/comments/default/3033943790238538384'/><link rel='alternate' type='text/html' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html?showComment=1238072220000#c3033943790238538384' title=''/><author><name>Anna</name><uri>http://www.blogger.com/profile/01530429172017051270</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sarathonline.com/2009/01/java-timezone-mapping-calendar-to.html' ref='tag:blogger.com,1999:blog-19558777.post-2405944243677843412' source='http://www.blogger.com/feeds/19558777/posts/default/2405944243677843412' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1199983331'/></entry></feed>
