I want to get timezone of visitors of my application in UTC format like (UTC+05:00) in php or javascript.
I have already tried this but it does not help me out it returns the result as Asia/Karachi:
$time ="<script>document.write(Intl.DateTimeFormat().resolvedOptions().timeZone);</script>";
echo $time;
Result: Asia/Karachi
I want to get result in UTC format like (UTC+05:00). How can I achieve this?