I am no expert in php. I know timezones are supported in PHP.
For a given timezone TZ supported by PHP, I need to retrieve the offset (i.e., number of hours and minutes to add or substract) to a known UTC (i.e. GMT+0) to get that time in the TZ zone.
How can I achieve this? Ultimately, I need to get those offsets for all supported timezones in PHP. Thanks.
This is a simple example how to get timezone offset in seconds:
to display it in the format GMT+x:
working example