I am new to PHP and I am having a timing problem in my code. Right now the time on my computer and in my time zone is 10:43 but when I use this php code to display time info I get 1:43:27
date_default_timezone_set('America/New_York');
echo date('H:i:s');
in my php.ini file I have this
I just changed where it says date.timezone
; Defines the default timezone used by the date functions
date.timezone = America/New_York
; http://php.net/date.timezone
date.timezone = UTC
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
; http://php.net/date.default-longitude
;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
I thought the above code would fix this time problem. I also stopped and started WAMP before and after I changed the .ini file.
Thank You.