Linux – Server timezone changed to PHT but logs still written in MST

datelinuxloggingtimezoneUbuntu

A couple of days ago, I updated the timezone on an Ubuntu 12.04 LTS server using $ sudo dpkg-reconfigure tzdata.

Today I noticed while tailing the mail log, that the times were still 15 hours behind. I immediately checked the server date but it's set to PHT as expected.

The following shows the last line of the terminated, tailed log (written just seconds earlier), followed by the data command.

Sep 20 01:24:07 s2 postfix/smtpd[13740]: disconnect from mail1282.news.laredoute.co.uk[208.85.54.19]
^C
root@s2:~# date
Fri Sep 20 16:24:12 PHT 2013

I've tried reloading Postfix, to no avail.

Best Answer

After changing the system time zone, you need to restart the system logger (or any other service that uses the timezone).