(This is a follow-up to: Time zone storage in PostgreSQL timestamps)
I am using PostgreSQL 9.x, the db server has default timezone as +9
for example, it has a table that contains a column of timezone
type.
There is a Java program on the same server as the db, it query data from the the database. Both the server that the db resides, and the client (a browser) of the Java server program is in timezone -8
.
My questions are:
- Will the client (brower) show the original datetime or adjusted datetime with 9 - (-8) = 17 hours earlier?
- If I want to get the same data in browser client as the db original value, should I change the timezone of Java server machine or the Client machine, or both?
(I know it's better to make the db & its server have the same timezone, but let's assume they are not setting the same for now for some reason.)