oracle11g - Oracle 11g - Format custom timezone to a oracle valid timezone -


i changing postgres db backend oracle 11.4.0.2 backend. in postgres, working joda datetime time zone offset , resulting in having 2 columns. 1 column timestamp , second column timezone offset column type varchar.

the database schema automatically generated hibernate , when generate database record writes following entry timezone column

'europe/zurich{+02:00}' 

this results in wrong database query if following "where-sql-query" being executed:

from_tz(to_timestamp('08/08/2016 00:00:00.000000', 'dd/mm/yyyy hh24:mi:ss.ff'), 'europe/zurich{+02:00}') 

however, following changed queries valid

from_tz(to_timestamp('08/08/2016 00:00:00.000000', 'dd/mm/yyyy hh24:mi:ss.ff'), 'europe/zurich') 

and

from_tz(to_timestamp('08/08/2016 00:00:00.000000', 'dd/mm/yyyy hh24:mi:ss.ff'), '+02:00') 

is there proper way convert timezone directly in query without doing workarounds such substringing timezone entry in order retrieve +02:00?

p.s. have work timezone information separately , cannot choose different datetime timezone datatype


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -