Time Zone Issue

Phoca Gallery - image gallery extension
RTWright
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Feb 2011, 23:57

Time Zone Issue

Post by RTWright »

"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 'America/New_York' for 'EST/-5.0/no DST' instead in /home/wwgdesigns/www/oos/administrator/components/com_phocagallery/views/phocagallerycp/tmpl/default.php on line 62"

This is not the first time I've seen this, it would appear that Joomla 1.6 and some extensions have issues with how it deals with the Time Zone settings. After having a few of the extensions I'm using getting updated, it went away on them. I'm currently using Phoca 3.0.0 RC3. So thought I'd post this here for you to take a look at. It doesn't go away no matter what Time Zone I select.

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Time Zone Issue

Post by Jan »

Hi, the problem is, Phoca Gallery uses the Joomla! methods, so it use the Joomla! date methods.

But in this case, only this function is used:

date("Y") ... to get current year.

Not sure how to change the date function :idea:
If you find Phoca extensions useful, please support the project
Post Reply