I'm using this expression to convert a date at UTC to its US/Eastern time equivalent:
CAST((FROM_TZ(CAST(date_field AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE) DATE_FIELD_ET
I was hoping to use a more generic expression to cast the value to the local time:
CAST((FROM_TZ(CAST(note_time AS TIMESTAMP),'+00:00') AT LOCAL TIME ZONE) AS DATE) DATE_FIELD_LOCAL
But this syntax doesn't work.
Is there a way to do this?