I'm trying to return the timestamp of my city.
When I use the ('Ymd H: i: s') statement it returns the correct time for my region but I need to return timestamp timestamp of my region's time.function agora (){
date_default_timezone_set("America/Campo_Grande");
$dftz011 = date_default_timezone_get();
$dtms011 = new DateTime();
return $dtms011->format('U');
}
I'm using this tool to convert the returned timestamp and when I do the conversion I always return the server time and not the timezone of my region.
How to return the timestamp of my region?