Double Timezone offset
- by gAMBOOKa
I have a timezone name and I want the name of the timezone double its offset.
For instance, Asia/Dubai is +4, I want to double that to +8... and have it resolved to Asia/HonkKong
Language: PHP
Here's a sample of what it would look like:
$timezone = "Asia/Dubai"
$offset = $timezone->getOffset();
$offset *= 2;
$timezone = $offset->getTimeZone();
Output: Asia/HonkKong