Answer the question
In order to leave comments, you need to log in
How to adjust time in select result?
The table has a column with timestamp data.
Time is stored there UTC It is
necessary to correct it to UTC + 3 as a result of the request.
I understand that this is easy to do by listing the column names in the query, like so:
SELECT id, name, timestamp + interval '3 hour' as timestamp FROM tablename
SELECT * FROM tablename
Answer the question
In order to leave comments, you need to log in
The table has a column with timestamp data.
The time is stored in UTC.
Try to change the time zone before the SELECT * FROM query, something like this
Well, +interval is not necessary, there is AT TIME ZONE for this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question