title: How can i insert timestamp with timezone in postgresql with prepared statement?
body: <p>I am trying to insert to a timestamp with timezone field of my DB a string which includes date, time and timezone using prepared statement.</p>
  
  <p>The problem is that Timestamp.valueof function does not take into consideration the time zone that the string inludes so it causes an error.
  The accepted format is yyyy-[m]m-[d]d hh:mm:ss[.f...] which does not mention timezone.</p>
  
  <p>That is the exact code that causes the error:</p>
  
  <p>pst.setTimestamp(2,Timestamp.valueOf("2012-08-24 14:00:00 +02:00"))</p>
  
  <p>Is there any way that i can overcome it??
  Thanks in advance!</p>