I'm using godaddy hosting and running cron job for codeigniter. That will be running every day at 10am. So in cron tab i tried like this
00 10 * * * export TZ=Asia/Dhaka; wget http://www.example.com/function
00 10 * * * TZ=Asia/Dhaka; wget http://www.example.com/function
00 10 * * * export TZ=Asia/Dhaka; /usr/bin/curl "http://www.example.com/function"
Always those command executing on others timezone maybe UTC timezone but i need Asia/Dhaka timezone UTC +6:00.
How do i write correct timezone command and where to write it?
Godaddy Cron Tab Look Like this
Thankfully, you can configure a specific timezone for your Cron job as follows: First, you need to export the TZ variable in your Shell script before any other Shell entries. Next, access your crontab and use the crontab environment variable CRON_TZ at the start of the crontab file.
From the Settings menu, click Display Settings. Go to the Time tab. From the Time Zone list, select your time zone. From the Numeric Date Format list, select the format you want dates to display as.
All cronjobs are executed at CET (Central European Time). CET time is the same as UTC+1 (previously GMT+1).
All cron jobs use UTC time.
The above answers didn't help me, they both gave me the date / time for the domain, but not for cron job. What helped me to determine the cron job schedule is:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With