@Gnuget the issue was this change from commit aea5a0a3 - a test that involves cron needed?

- * @todo REQUEST_TIME is deprecated in Core 8.3.x
  */
 function personal_digest_cron() {
   $dayOfWeek = date('w');
-  $now = REQUEST_TIME;
+  $now = \Drupal::time()->getRequestTime();
CommentFileSizeAuthor
#2 2834528-fix-cron-in-8-2.patch755 bytesmlncn

Comments

mlncn created an issue. See original summary.

mlncn’s picture

StatusFileSize
new755 bytes
mlncn’s picture

Ah no i see-- the tests need to be run against 8.2!

  • gnuget committed 93fea41 on 8.x-1.x authored by mlncn
    Issue #2834528 by mlncn: Use of Drupal 8.3.x code causing error on cron...
gnuget’s picture

Status: Needs review » Fixed

Wow I read to REQUEST_TIME was deprecated and automatically assumed to there were an alternative in the stable version :-/

Fixed, also I turned on the tests for the branch 8.2.x to avoid this happen again.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.