Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jooq java api, convert datetime to timezone in select query

Getting some issues with org.jooq api. Saving data into DB, in UTC format for timestamptz fields. When fetching the same from db, there is a way in postgres.

select id, created_datetime at time zone 'pst' from account.

Is there any way to achieve the same into jooq ?

selectStep = selectStep.select(fieldName).as(aliasName))

like image 440
Opv Avatar asked Jun 25 '18 16:06

Opv


1 Answers

While searching for the support related with 'AT TIME ZONE' in jooq api.

I found in github this feature is on the roadmap.

https://github.com/jOOQ/jOOQ/issues/7238

May be helpful to others.

like image 74
Opv Avatar answered Oct 18 '22 01:10

Opv