e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

Cron Schedule might not trigger with some timezones set in the preferences. #5096

Closed CaMer0n closed 8 months ago

CaMer0n commented 8 months ago

Bug Description

When using the timezone 'America/Chihuahua', cron jobs would not trigger at all.

How to Reproduce

Steps to reproduce the behavior:

  1. Set the default timezone to 'America/Chihuahua' in the Admin preferences.
  2. Schedule a cron job to run every minute for _system_cron::sendEmail()

Cause

The 'intl' extension (depending on the version of PHP) may not be up-to-date. This caused a 1 hour difference for the timezone above, so the cron time would never match the calculate 'NOW' time.