So I have a system that is mostly finished, just ironing out some final bugs. We have an issue that the program seems to be permanently set in the New York timezone.
I have this line of code in both core.php and bootstrap.php:
date_default_timezone_set("Australia/Melbourne");
But the system keeps reporting that it is in America/NewYork.
Can anyone help me set the timezone to Australia Melbourne?
The date_default_timezone_set() function sets the default timezone used by all date/time functions in the script.
Unfortunately, there is no default time, so you have to change your time depending on the time zone used in the place.
The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.
In the config/core.php
file of the app folder try the following with single quotes:
date_default_timezone_set('Australia/Melbourne');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With