magemojo / m2-ce-cron

Magento 2 cron project to fix bugs and common cron issues.
https://magemojo.com
MIT License
165 stars 45 forks source link

Cron not executing as per Timezone #78

Closed pratikrgandhi closed 4 years ago

pratikrgandhi commented 5 years ago

Hi,

We face issue with timezone, MageMojo_Cron module runs all crons in GMT/UTC time

We use MageMojo_Cron module, it runs all the CRONS as per GMT time but it should work as per timezone configuration.

Current Example:- Current TimeZone = CST Cron time = 0 23 * It was run at 06:00:32 PM

So it should run at 11:00 PM as per TimeZone & Cron configuration

As Magento default Cron job, it works as per Configured timezone in Stores >> Configuration >> General >> General >> Locale Options >> Timezone

So, why MageMojo-Cron module executes all CRONS as per GMT time?

gnuzealot commented 4 years ago

@pratikrgandhi this is by design. All other timezones stored in magento are stored as UTC0, timezone translations are done in the frontend.