I am working on an application on my computer that is a time clock. When I click punch in, the time that is saved in the database if different then the time on my computer. I am using localhost to develop the application. I know it is probable a time zone problem. I found this question: is the time of computer and localhost same? , and followed the steps, with no success. I am using WampServer as a web server. I went through the php.ini file and made the changes to the date.timezone setting and nothing changed. I do have three versions of php installed and I made the changes to each version. I also found the Wamp use a symbolic link for the php.ini file that links to php4apache.ini, and made the changes in the linked file, still nothing worked.
I tried checking the time in php and mysql following the instruction here: Date/Time differences between MySql and PHP?. and found the mysql is set to SYSTEM, and php is set to UTC. This tells me I do not have PHP set correctly. So my questions are, is there another place in PHP that the time zone would be set? And is there a place in WAMP that set the time zone, or is done in php alone?
Thanks for any assistance. Troy