Reputation: 13111
After running token generator - I get this output:
token_expiration = 2019-02-15T17:07:49Z
What time zone it is and how to convert it to EST?
Thanks
Upvotes: 0
Views: 2740
Reputation: 132
The end Z indicates it is UTC. To convert from UTC to EST you can use this function:
$date = new DateTime('2019-02-15T17:07:49Z', new DateTimeZone('UTC'));
$date->setTimezone(new DateTimeZone('America/New_York'));
echo $date->format('Y-m-d H:i:s');
Upvotes: 2