Issue with converting UTC time to BRT time
Summary:
When I run below SQL to convert time from UTC to BRT (America/Sao_Paulo), output is not correct. There is a difference of 1 hour in the output. I read somewhere that Brazil is no longer participating in day light saving. This may be happening because of that. Have you encountered this issue and how did you fix it?
SELECT 'America/Sao_Paulo' time_zone, systimestamp UTC_DATE_TIME, to_char(systimestamp, 'HH24:MI:SS') UTC_TIME, to_char(systimestamp at time zone 'America/Sao_Paulo', 'HH24:MI:SS') LOCAL_TIME
from dual
Output:
Content (please ensure you mask any confidential information):