I'm converting some column types from TIMESTAMP WITHOUT TIME ZONE to TIMESTAMP WITH TIME ZONE.
Some functions that already exists in the system calculates the difference between two timestamps by simply doing something like: timestamp1 - timestamp2.
I'm wondering if this approach is correct when dealing with timezones. The solution I'm thinking of is the following:
timestamp1 at time zone 'America/Sao_Paulo' - timestamp2 at time zone 'America/Sao_Paulo'
But the question is: this approach handles DST changes correctly? It's safe to subtract timestamps with time zone this way?
Thanks!