I currently have a movie theater website I'm working on in which we display showtimes in a tabbed panel that automatically updates at midnight each night. Each tab has a code similar to:
$sql = SELECT * FROM showtimes WHERE DATE(`date`) = DATE(NOW())";
for today, then tomorrow would be the same but DATE(NOW())+1";
, and so on. After that line I echo
out the relevant elements into the panel. I understand my code is probably not the best as I'm a beginner but it does work the way it should.
The issue I'm having is that the server is on the west coast and I'm in the Central time zone. Due to this, the tab panels don't update until 2:00 AM my time. I tried adjusting the timezone in the php.ini file but that didn't help. Is there a way I could adjust my code so that it compensates for the 2 hour difference in my time vs server time?
Thank you.