1
Does anyone know how I put Brasilia’s time zone in this code?
$file_path = "file.zip";
$file_update = date ("Y-d-m G:i:s", filemtime($file_path));
$date = date("n/j", filemtime($file_path));
$hours = date("H", filemtime($file_path));
$sec = date("i", filemtime($file_path));
$h = $hours + 3;
if ($h > 12) {
$h = $h - 12;
$t = 'PM';
} else {
$t = 'AM';
}
$file_date = $date . ' @ ' . $h . ':' . $sec . ' ' . $t . ' ET';
Thank you very much!
– Maycon Jardim