gortiz commented on issue #13004:
URL: https://github.com/apache/pinot/issues/13004#issuecomment-2076493793

   Just as a reminder, this type in Postgres does not actually include 
timezone. Instead, at disk level, this type is just a normal timestamp. As 
explained by [the 
doc](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-INPUT-TIME-STAMPS):
   
   > For timestamp with time zone, the internally stored value is always in UTC 
(Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). 
An input value that has an explicit time zone specified is converted to UTC 
using the appropriate offset for that time zone. If no time zone is stated in 
the input string, then it is assumed to be in the time zone indicated by the 
system's 
[TimeZone](https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-TIMEZONE)
 parameter, and is converted to UTC using the offset for the timezone zone.
   
   > When a timestamp with time zone value is output, it is always converted 
from UTC to the current timezone zone, and displayed as local time in that 
zone. To see the time in another time zone, either change timezone or use the 
AT TIME ZONE construct (see [Section 
9.9.4](https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-ZONECONVERT)).
   
   > Conversions between timestamp without time zone and timestamp with time 
zone normally assume that the timestamp without time zone value should be taken 
or given as timezone local time. A different time zone can be specified for the 
conversion using AT TIME ZONE.
   
   So basically the timezone feature is mostly a frontend property. When 
timezone is included in the type, values are converted to UTC. When timezone is 
not included, the received timezone is considered to be based on the server 
timezone.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to