Yes, my server times on the Pi are all over the place! Here are the results:
[email protected]:~$ date
Wed Jun 19 15:07:21 CST 2013
[email protected]:~$ php /var/www/OpenSprinkler-Controller/test.php; echo
Wed, 19 Jun 2013 14:37:27 +0900
Wed, 19 Jun 2013 05:37:27 +0000
That is the problem! So, your RPi has the wrong timezone set. It is using CST for some reason. PHP is using GMT+9 by default but because the RPi time is off its not able to make the proper calculations. Regardless, this needs to be fixed for my web app to work correctly.
First start with this in the terminal:
sudo dpkg-reconfigure tzdata
Follow the prompts and set the correct timezone. After this, re run those commands and tell me if they are lined up correctly with your local time, specifically the “date” command. If they are, check the web app against a new run.