
Originally Posted by
amebb
ok i followed one of the threads to place a location in the script.
The script was located at - /includes/extra_configures/set_time_zone.php
so i then placed my location as stated.
my location is Europe/London
hope that helps
So the code looks something like:
Code:
if (version_compare(PHP_VERSION, 5.3, '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
Looking over PHP manual, they make it sound like 5.3 should be a string. Perhaps a conversion does (or does not) take place above, assuming that you've cleared your cache after setting the above value and tried to load the admin then try changing this same above snippet to:
Code:
if (version_compare(PHP_VERSION, '5.3', '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
I've also oddly seen that possibly actually modifying the "string" to something like this for the applicable version of PHP has been necessary:
Code:
if (version_compare(PHP_VERSION, '5.6', '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
Or, adding an additional sub-comparison value (that could then be run through the same above modifications):
Code:
if (version_compare(PHP_VERSION, 5.3.0, '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'