I need to set timezone in my laravel project but it's not giving exact same time. There is a difference in current time (checking via google) and the time my code is showing. My code is below:
date_default_timezone_set($generalSettings->timeZone); // $generalSettings->timeZone = "America/Denver" echo date("Y-m-d h:m:s"); exit;
It's showing "2016-12-21 01:12:05" while current time in "Time in Denver, CO, USA" 1:40 A.M. What I'm missing here that should display exactly same date time. Thanks!