How to Get Time Zones Information from Salesforce Apex Code?
Salesforce developers can obtain time zone information easily from Apex code by utilizing the Local Time API. The following sample apex code illustrates how to use the API method tz.LocalTimeV2.getTimezones() in different scenarios. This function is bulkified, and thus it is ideal to use in triggers, flows, and in other use cases where you need
