My timestamp is like this:
$timestamp = "2018-08-28T08:49:44+00:00";
Easy to convert this to a unix timestamp:
$unixtime = strtotime($timestamp);
echo $unixtime; // result: 1535446184
My desired result is to get the timestamp with timezone for my current timezone. It should be like this:
$timestamp_with_timezone = "2018-08-28T10:49:44+02:00";
However if I do:
echo date('c',$unixtime);
The result is again:
2018-08-28T08:49:44+00:00
What is the correct way to get the desired local time date in ISO 8601 format?