I have a Python application that stores the local time into a mySQL database and a PHP application that displays that date/time through a Web interface. I'm observing a constant offset (from GMT) of the displayed date/time.
I can find nothing in the PHP / Python documentation to explain this difference.
The Python application stores the local time:
import time
localTime = int(time.time())
The PHP application then retrieves the time and displays it:
date('n/j/y H:i:s', $bg['last_polled'])
where $bg retrieves the entry from the mySQL database.
Why don't these two agree on what localtime is (both applications are running on same server)