This PHP statement date('Y-m-d',1281394800) returns different values in different servers. One gives me 2010-08-09 and the other 2010-08-10. Could someone please help explain?
This PHP statement date(‘Y-m-d’,1281394800) returns different values in different servers. One gives me 2010-08-09
Share
Try this and see if you still get different results:
If you get exactly the same results across servers, you can set the timezone to the one you want. For more information:
date_default_timezone_set
List of Supported Timezones