Web Systems
2016-10-13
XAMPP Issues
Listing8.7.php
date()
date(“h:i”); // 12 hour clock
date(“H:i”); // 24 hour clock
Q/As
Q: PHP date()
time is different than the local server time.
·
Navigate to c:\xampp\php\php.ini initialization file
·
Looking for
[Date]
date.timezone =Europe/Berlin
Looking for the List of Supported Timezones,
http://php.net/manual/en/timezones.php
Change it to
date.timezone =America/Indianapolis
Restart the XAMPP server