I have a website where I want to capture the visitors login (date/time) based on his country, so that I can show him, his last login detail when he logs in again into my website. I have tried it like this:
$date = new DateTime('now', new DateTimeZone('Australia/ACT'));<br>
$current_time=$date->format(Y-m-d'H:i:s');
I want to make it dynamically
Please help
Thanks