OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



time zone error log

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John

Forum rules
Feel free to post general inquiries about the PKP Here. We'll also post notes of interest from time to time. You may also want to check out the PKP blog.

time zone error log

Postby partove » Mon Dec 30, 2013 2:40 am

I have an error in /var/log/httpd-error.log as follows:

Code: Select all
[Sat Dec 28 23:27:10 2013] [error] [client 172.16.3.210] ojs2 has produced an error\n  Message: WARNING: 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 'Asia/Tehran' for 'IRST/3.0/no DST' instead\n  In file: /usr/local/www/apache22/data/ojs23/lib/pkp/classes/announcement/PKPAnnouncement.inc.php\n  At line: 244\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 5.3.27\n   Apache Version: Apache/2.2.25 (FreeBSD) PHP/5.3.27 with Suhosin-Patch mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2\n   DB Driver: mysql\n   DB server version: 5.5.33, referer: http://172.16.5.248/index.php?journal=site


How do I fix this error?
partove
 
Posts: 4
Joined: Mon Dec 30, 2013 2:36 am

Re: time zone error log

Postby asmecher » Mon Dec 30, 2013 5:56 am

Hi partove,

As the message suggests, you need to add a setting to your PHP configuration to tell it what time zone to use. The details of how to do this will vary depending on your server configuration; it may be a direct modification to php.ini, or a .htaccess file, or something else.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron