#4363Usage of $GLOBALS['EXEC_TIME'] inappropriate in some places
Description
Trying to follow some best practices, I had replaced quite a few calls to time() by the use of $GLOBALS[‘EXEC_TIME’]. This has proven wrong in some situations. Indeed some scripts executed by the scheduler may last quite a while. When a task is finished, some calculations take place like the next execution date. In this case it is important for the calculations to be based on time(), otherwise their next execution date might already be in the past, if the task lasted longer than its own frequency (when using intervals).
Solution: revert a few uses of $GLOBALS[‘EXEC_TIME’] to time().
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.