I use the date("D, m/d/Y h:i:s AT") function call date("D, m/d/Y h:i:s AT") to get the current time, but the return time is different from the time I get when I make a date in the linux bash command (local time is in CST and the php date function returns time in UTC ). I tried using $timezone = @system("date +%Z",$retval); to get the time zone in an attempt to set the local time zone using the date_default_timezone_set() function. But CST seems to be invalid timezone_identifier.
In short, I just need to get the same date and time as the local time.
Steve source share