I am using weblogic server and oracle as a backend for my j2ee application.
we have multiple columns with data type as TIMESTAMP(6) WITH LOCAL TIME ZONE
along with other column data type as TIMESTAMP(6)
. issue is though values are same for each column 1hr extra displayed in UI. In UI we simply doing SimpleDateFormat
using java.
DB values are for all three column are
23-SEP-15 03.37.52.958000000 PM
But IN UI it is displayed as for TIMESTAMP(6) WITH LOCAL TIME ZONE
fields
23-SEP-15 04.37.52.958000000 PM
Server it is showing correct time zone.any Idea what it went wrong.
Java code displaying dateFiled
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
.........................
.............................
....some code goes here..........
..getting the values from DB and converting it to value Objects...
String dateValue = sdf.format(valueBO.getDateValue()).toString();
.....
Just given lines of code how i am converting the DB value
...........
On page it displays 23-Sep-15 03.37.52.938 PM
+update
any issue with DBTIMEZONE
.