Apophis55 wrote:In previous versions of Xampp, in order to change the default time zone one had to make changes to 2 files:
C:\xampp\php\php.ini
C:\xampp\mysql\bin\my.ini
In previous versions to 1.7.4 (for example 1.7.3) the setup_xampp.bat file took care of this chore.
In 1.7.4 several 1.7.3 features have been omitted, so you would need to add the my.ini file entry manually.
In the my.ini file you would need to add the line in red in the location defined below, like so
myisam_sort_buffer_size = 8M
default-time-zone = "Australia/Brisbane"
log_error = "C:/xampp/mysql/data/mysql.err"
pid_file = "mysql.pid"
In the php.ini file look for and edit this section
- Code: Select all
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Australia/Brisbane"
Remember to save the files and restart Apache and MySQL.
The above time zone is for my location and the default, if unchanged, is Europe/Berlin.
The time zones for your particular location may be found here:
http://php.net/manual/en/timezones.php