While working on updating the user interface for the client, I noticed that the dates associated with all the articles were disabled for one day. I thought that during my changes I screwed something up, but, of course, threw together a small php test file that gave me some odd results. The test file is simple:
<?php $date = 1246053600; echo 'unix: ',$date,', converted: ',date('d/m/Y', $date); ?>
If I run the above code on my local host, I get:
unix: 1246053600, converted: 06/26/2009
But if I run it on a production server, I get:
unix: 1246053600, converted: 06/27/2009
Pay attention to the difference in the day between the two? What's going on here?! Of course, converting a unix timestamp to a date does not have any server dependent dependencies?
source share