I am having timezone = 'Asia/Jakarta' everywhere in
- Magento admin
- Database
- checked in phpinfo
- Server
But still in the CRON logs I am getting UTC time only, I need this to be in 'Asia/Jakarta' only.
I managed to check app/bootstrap.php and found
date_default_timezone_set('UTC');
On commenting this line CRON runs in correct timezone, but order listing in Magento (Sales > Order) becomes in UTC now.
Tried various solutions in app/bootstrap.php (no one is working) as:
ini_set('date.timezone', 'Asia/Jakarta');
date_default_timezone_set( ini_get('date.timezone') );
and
date_default_timezone_set('Asia/Jakarta');
Any idea why is it so ?