mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11086
[Bug 1080174] Re: Cron job error messages
I've added the following at the top of the script
date_default_timezone_set("Europe/Berlin");
(Europe/Berlin is the server location so there's probably a way of
setting a more location non-specific call)
Output is now
[INF] 95 (lib/cron.php:48) ---------- cron running Sat, 17 Nov 2012 22:00:04 +0100 ----------
[INF] 95 (lib/cron.php:93) Running PluginBlocktypeExternalfeed::refresh_feeds
[INF] 95 (lib/cron.php:93) Running PluginInteractionForum::interaction_forum_new_post
[INF] 95 (lib/cron.php:155) Running core cron rebuild_artefact_parent_cache_dirty
[INF] 95 (lib/cron.php:155) Running core cron activity_process_queue
[INF] 95 (lib/cron.php:155) Running core cron import_process_queue
[INF] 95 (lib/cron.php:155) Running core cron user_login_tries_to_zero
[INF] 95 (lib/cron.php:155) Running core cron check_imap_for_bounces
[INF] 95 (lib/cron.php:186) ---------- cron finished Sat, 17 Nov 2012 22:00:05 +0100 ----------
Thanks for all your hard work ;)
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1080174
Title:
Cron job error messages
Status in Mahara ePortfolio:
New
Bug description:
Running cron produces the following message (not the full report)
[WAR] 10 (lib/cron.php:47) 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/Berlin' for 'CET/1.0/no DST' instead
Call stack (most recent first):
* log_message("date(): It is not safe to rely on the system's tim...", 8, true, true, "/lib/cron.php", 47) at /lib/errors.php:446
* error(2, "date(): It is not safe to rely on the system's tim...", "/lib/cron.php", 47, array(size 61)) at Unknown:0
* date("r e", 1353183306) at /lib/cron.php:47
[INF] 10 (lib/cron.php:47) ---------- cron running Sat, 17 Nov 2012 21:15:06 +0100 Europe/Berlin ----------
[INF] 10 (lib/cron.php:154) Running core cron rebuild_artefact_parent_cache_dirty
[WAR] 10 (lib/cron.php:188) getdate(): 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/Berlin' for 'CET/1.0/no DST' instead
Call stack (most recent first):
* log_message("getdate(): It is not safe to rely on the system's ...", 8, true, true, "/lib/cron.php", 188) at /lib/errors.php:446
* error(2, "getdate(): It is not safe to rely on the system's ...", "/lib/cron.php", 188, array(size 2)) at Unknown:0
* getdate(1353183306) at /lib/cron.php:188
* cron_next_run_time(1353183306, array(size 8)) at /lib/cron.php:168
etc ... last line:
[INF] 1a (lib/cron.php:185) ---------- cron finished Sat, 17 Nov 2012
21:30:06 +0100 ----------
Hosting is in Berlin, Germany. PHP is 5.3.17. System is Linux. MySQL database 5.5.27
Zend Engine v2.3.0, ionCube PHP Loader v4.0.7
Browser Firefox 16.0.2 and Chrome
Mahara version 1.6.1 (2012080606)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1080174/+subscriptions
References