title: Issue inserting timestamp in Postgres table
body: <p>I am trying to insert a value in the postgres table through Java . Column type is timestamp.</p>
  
  <p>The code is like this :</p>
  
  <pre><code>SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
  String gameStartedTime = format.format(new Date());
  
  String query= "UPDATE gameStatus g SET g.status ='" + gameStatus
      + g.gameStartTime= to_date('"
              + gameStartedTime  + "','yyyy-MM-dd HH:mm:ss')"
      // Doesn't matter much
  + " WHERE g.status = 'STARTED' AND " + "g.condition="+ game.getCondition();
  </code></pre>
  
  <p>Now when I try to execute this statement it fails I get the message like this : </p>
  
  <blockquote>
    <p>ERROR:  conflicting values for "mm" field in formatting string.
    DETAIL:  This value contradicts a previous setting for the same field type.</p>
  </blockquote>
  
  <p>I am not sure what is going wrong !!</p>
  
  <p>Any help on this will be useful.
  Thanks in advance.
  -JE</p>