Returns a new date time, with a new time zone on the same instant.
Date
updateTimeZone(<parameters>)
updateTimeZone(<dateTime>,<timeZone id>)
Returns a datetime.
updateTimeZone( toDateTime("2023-08-28T08:15:30.123-07:00"), "Europe/Paris"))
Returns 2023-08-28T17:15:30.123+02:00.
updateTimeZone(@event{MyExpEvent.timestamp}, "Australia/Sydney")
If the value of the timestamp field is 2021-11-16T16:55:12.939318+01:00
, then the function returns 2021-11-17T02:55:12.942115+11:00
.