Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

TimeZone is not working properly

I am using linode server running ubuntu 12.04LTS. My Question is when i configured timezone by using dpkg reconfigure tz as IST ASIA/Calcutta. It shows correct timezone by using date command. But it is not working in CRON jobs and PHPMYADMIN. Because My work is very important, anxiously i have to work in UTC timezone to run my cron jobs accordingly. But now i am stucking with my applications output run by cron jobs. Please help me!!

Thanks in advance

share|improve this question

Please set your timezone using sudo dpkg-reconfigure tzdata instead of via an environment variable.

share|improve this answer
timezone is not set permanently after set link to /etc/localtime, so i did export and its done but not working woth crontab and phpmyadmin – shihon May 30 '12 at 12:02

It will work after you restart crontab. Better to restart the system. otherwise you have to restart too many services. like syslog will also show old time zone, until you restart it. Mean while below commands will resolve your problem.

$ service cron restart

$ sudo service rsyslog restart

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.