• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: function.date error

function.date error 11 years 11 months ago #22760

Any ideas on why this error is appearing wherever date should be displayed?

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 'Antarctica/Macquarie' for 'EST/10.0/no DST' instead in /home/.../public_html/administrator/modules/mod_rsfirewall/tmpl/default.php on line 63

Joomla: 1.5.26
RSFirewall: 44
The administrator has disabled public write access.

function.date error 11 years 11 months ago #23022

  • info0105
  • info0105's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
same problem here
The administrator has disabled public write access.

function.date error 10 years 11 months ago #27351

  • jjones21
  • jjones21's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I also ran into this, I modified two of RSFirewall's files adding a "date_default_timezone_set" function. In these two files;
administrator/modules/mod_rsfirewall/tmpl/default.php (added after line 15)
administrator/components/com_rsfirewall/views/rsfirewall/tmpl/default.php (added at line 45)

I had to add this line;
<?php date_default_timezone_set("UTC");?>
You will have to Google an appropriate timezone for your area, I used UTC

I think this should be set in the site's main php.ini file, not sure why I had to add it to the files. I would think Joomla adds a default line somewhere as there is a timezone setting in the global configuration settings, I don't see it in the configuration.php file though.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!