I have a form with a date field that is using the type date/datetime; does not matter which, both stores the date as a unix timestamp. The field for the date is int(11). When I retrieve the timestamp from the database and pass it to date() I get a warning:
date() expects parameter 2 to be long, string given
For fun, I tried (int) and it changed the timestamp to a null value. After doing several tests to figure what is going on, I have concluded that perhaps the php version on the test server was the issue and so I checked and found it was php 5.3.24. Anyone know of any issues with php 5.3.24 and the date() function?