Page 1 of 1

Timezone error with Joomla

PostPosted: 25. January 2010 04:47
by jbruku
Hi All,

I am trying to set up a site locally using XAMPP 1.7.3 and Joomla 1.5. For some reason I am plagued with the following errors all over the frontend of my site, and in the article manager on the backend. I changed the php.ini specs on date.timezone = to 'America/New_York' but it is still not working. I made sure that that was the Loading Configuration file, and just cant get to the bottom of this. Any help is appreciated.

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in C:\xampp\htdocs\Joomla150\libraries\joomla\utilities\date.php on line 117

AND

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in C:\xampp\htdocs\Joomla150\libraries\joomla\utilities\date.php on line 250

Re: Timezone error with Joomla

PostPosted: 27. May 2010 13:09
by madalai
i am getting the same problem too.

madalai

Re: Timezone error with Joomla

PostPosted: 27. May 2010 13:22
by madalai
I am getting the same problems. Madalai
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\fede\libraries\joomla\utilities\date.php on line 56

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\fede\libraries\joomla\utilities\date.php on line 198

Re: Timezone error with Joomla

PostPosted: 27. May 2010 13:24
by Altrea
Do you use the zip-Version of XAMPP?
Have you followed the installation instructions?
Look in your phpinfo()-Report if your timezone is setted
Search in your php.ini for the [Date]-Block and check if your timezone is setted

Re: Timezone error with Joomla

PostPosted: 29. May 2010 16:35
by qjumper
I am getting the same problem:


[color=#BF0000]Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\xampp\htdocs\joomla15\libraries\joomla\utilities\date.php on line 56

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\xampp\htdocs\joomla15\libraries\joomla\utilities\date.php on line 198

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\xampp\htdocs\joomla15\libraries\joomla\utilities\date.php on line 198

date.php has no reference to [/color]

Altrea wrote:Do you use the zip-Version of XAMPP?
Have you followed the installation instructions?
Look in your phpinfo()-Report if your timezone is setted
Search in your php.ini for the [Date]-Block and check if your timezone is setted


Not many instructions in the zip install. Timezone does not show that it is set in phpinfo. The error states date.php not php.ini Any idea where I should be looking?

Re: Timezone error with Joomla

PostPosted: 29. May 2010 16:55
by Altrea
qjumper wrote:Not many instructions in the zip install.

But the few infos in the readme_en.txt file.

readme_en.txt wrote:* QUICK INSTALLATION:
[...]
Step 1: Please start the "setup_xampp.bat" and beginning the installation. Note: XAMPP makes no entries in the windows registry or adds new system variables.
[...]


This setup_xampp.bat file sets a default timezone in your php.ini. If you havn't run the setup_xampp.bat file, you can run it now.


readme_en.txt wrote:The error states date.php not php.ini

Thats because the strtotime() and date() functions of joomla are in the date.php file, which causes this warnings.