How to set crontab for different Time Zone

Hi,

I want to set cron job for different time zone from my machine. So here is what I did to set it.

I am having a file cronfile, which I use to set cron jobs by using

  Crontab cronfile
  

Now in cronfile I set TZ variable as
Set TZ=Asia/Calcutta

But now when I set cron job I am getting following error:

Cronfile:1 : bad minute
Errors in crontab file , can�t install.

Is there any other way to set cron for different time zone.

Thanks,
Sarbjit

search on google how to set cronjob

Crontab � Quick Reference

You will need to change the timezone on a job-by-job basis.
The TZ line should not be a line on its own in crontab, but it can be part of a normal line in crontab or be inside a script.

The syntax you show for TZ is incorrect.
What do you get in a normal interactive session for:

echo "${TZ}"

What Operating System and version are you running?
What Shell are you running?
Is your server clock set in UTC with default timezone in /etc/TIMEZONE ?

It is often easier to use the cron on a server which runs in the target timezone to trigger jobs on the server which is in a different timezone.

Calcutta is also wrong. It should be either

or