Using PHP's date() function, I log the times visitors visit my website. Because my website is hosted in a different time zone, I use this code:
$time_of_visit = date("Mj g:ia",time() - 25200);
The variable "$time_of_visit" is loaded into my mySQL database.
Here's the problem: I just now went to my own website, and loaded and reloaded the page six times, and this is what got loaded into mySQL:
7:49pm
7:49pm
7:49pm
11:49pm
7:49pm
7:49pm
Notice the "11:49pm?" ... I know that PHP didn't "forget" to subtract 25200... or did it? :bemused: