processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

SystemUpdaterChecks.php checkSystemTimes()

Open BrendonKoz opened this issue 2 months ago • 1 comments

This should be an easy one. This is the first time I've had this issue, but because my production server's database is physically hosted on different hardware than my webserver, the reported PHP and MySQL time check was off. That being said, I've already fixed the timezone issue in config; it was off by 4 seconds. I was still told to update my config timezone.

Image

Because I can't actually fix this with a config change, I propose the following:

Proposed fix at line 474: Instead of: if($diff < 3) return true; Set to: if($diff < 15 * 60) return true;

15 minutes is currently the smallest incremental change of time for timezone differences.

BrendonKoz avatar Oct 21 '25 21:10 BrendonKoz

Thanks @BrendonKoz I've added your suggested fix for this

ryancramerdesign avatar Oct 24 '25 18:10 ryancramerdesign