title: jadira usertype joda time returns incorrect datetime from database
body: <p>I am using jadira usertype for joda time with Hibernate 4. I need to use the jvm date time for storage and retrieval. The problem is that the date read back has an offset of 2 hours. We are on UTC+2. Dates are stored correctly in the database. The database is MySQL 5 .I setup databaseZone and javaZone globally in my session factory configuration as follows:</p>
  
  <pre><code>&lt;prop key="jadira.usertype.autoRegisterUserTypes"&gt;true&lt;/prop&gt;
  &lt;prop key="jadira.usertype.databaseZone"&gt;jvm&lt;/prop&gt;
  &lt;prop key="jadira.usertype.javaZone"&gt;jvm&lt;/prop&gt;  
  </code></pre>
  
  <p>The database itself is configured for timezone SAST. With the above configuration for example a date of 2008-01-01 stored in the database and is read as 2007-12-31T22:00:00.000+02:00. I have also tried this without the global configuration using annotation as follows but with the same results:</p>
  
  <pre><code>@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime",
  parameters = { @Parameter(name = "databaseZone", value = "jvm"),
           @Parameter(name = "javaZone", value = "jvm")})
  </code></pre>
  
  <p>If I run the following query on the database, </p>
  
  <pre><code>SELECT version( ) , @@time_zone , @@system_time_zone , NOW( ) , UTC_TIMESTAMP( );
  </code></pre>
  
  <p>I get the results:</p>
  
  <pre><code>version : 5.5.13
  @@time_zone :  SYSTEM
  @@system_time_zone  : South Africa Standard Time
  NOW() : 2013-04-03 14:33:12
  UCT_TIMESTAMP() : 2013-04-03 12:33:12
  </code></pre>
  
  <p>What am I missing here. According to all I understand from the usertype and joda, my configuration is correct.</p>