From 5172f65c2ebdfe054e0ea40a12888d25efeeca09 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 17 May 2024 03:53:51 +0200 Subject: [PATCH] Fix log must use GMT date --- scripts/cron/cron_run_jobs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/cron/cron_run_jobs.php b/scripts/cron/cron_run_jobs.php index 7908b5b601a..6e93799169a 100755 --- a/scripts/cron/cron_run_jobs.php +++ b/scripts/cron/cron_run_jobs.php @@ -92,7 +92,7 @@ $hookmanager->initHooks(array('cli')); $now = dol_now(); @set_time_limit(0); -print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." - userlogin=".$userlogin." - ".dol_print_date($now, 'dayhourrfc')." - ".gethostname()." *****\n"; +print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." - userlogin=".$userlogin." - ".dol_print_date($now, 'dayhourrfc', 'gmt')." - ".gethostname()." *****\n"; // Check module cron is activated if (!isModEnabled('cron')) { @@ -293,11 +293,14 @@ if (is_array($object->lines) && (count($object->lines) > 0)) { $db->close(); +print "***** ".$script_file." end - ".dol_print_date($now, 'dayhourrfc', 'gmt')." - ".gethostname()." *****\n"; + if ($nbofjobslaunchedko) { exit(1); } exit(0); + /** * script cron usage *