Get current date, given a timezone in PHP? - Stack Overflow

PHOTO EMBED

Mon Dec 27 2021 16:15:10 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira #php

<?php
$date = new DateTime("now", new DateTimeZone('America/New_York') );
echo $date->format('Y-m-d H:i:s');
content_copyCOPY

https://stackoverflow.com/questions/8006692/get-current-date-given-a-timezone-in-php