Timezone error with Joomla

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Timezone error with Joomla

Postby jbruku » 25. January 2010 04:47

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
jbruku
 
Posts: 1
Joined: 25. January 2010 04:43

Re: Timezone error with Joomla

Postby madalai » 27. May 2010 13:09

i am getting the same problem too.

madalai
madalai
 
Posts: 2
Joined: 27. May 2010 11:02

Re: Timezone error with Joomla

Postby madalai » 27. May 2010 13:22

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
madalai
 
Posts: 2
Joined: 27. May 2010 11:02

Re: Timezone error with Joomla

Postby Altrea » 27. May 2010 13:24

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Timezone error with Joomla

Postby qjumper » 29. May 2010 16:35

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?
qjumper
 
Posts: 1
Joined: 29. May 2010 16:12

Re: Timezone error with Joomla

Postby Altrea » 29. May 2010 16:55

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 146 guests