You are working with an API that returns a time in UTC, you would like to localize this value to your timezone or a specific timezone.
Overview
Convert a DateTime to a different timezone.
Parameters
Parameter
Description
Required
DateTime to convert
Use https://strftime.org/ for various options
Timezone to convert
Use https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for various options not listed
Some timezone values are timezone naive, such as EST. If you would like to use a timezone aware value then, as an example, you should use America/New_York or US/Eastern.