<?php
$date = "01-05-2017 08:00:00";
$date = new DateTime($date, new DateTimeZone("UTC"));
$date->setTimeZone(new DateTimeZone("America/Sao_Paulo"));
echo $date->format('Y-m-d H:i:s'), PHP_EOL;
PD9waHAKCiRkYXRlID0gIjAxLTA1LTIwMTcgMDg6MDA6MDAiOwoKJGRhdGUgPSBuZXcgRGF0ZVRpbWUoJGRhdGUsIG5ldyBEYXRlVGltZVpvbmUoIlVUQyIpKTsKJGRhdGUtPnNldFRpbWVab25lKG5ldyBEYXRlVGltZVpvbmUoIkFtZXJpY2EvU2FvX1BhdWxvIikpOwogCmVjaG8gJGRhdGUtPmZvcm1hdCgnWS1tLWQgSDppOnMnKSwgUEhQX0VPTDsKIA==