Change timezone not affect log files

Discussion in 'Installation/Configuration' started by Poliman, Apr 27, 2017.

  1. Poliman

    Poliman Member

    I changed timezone of my server setup under Ubuntu 16.04 LTS and then command date shows proper date and time. Unfortunately in log files ex. /var/log/mail.err I have still time before changes (in this case 2h in back). What to do to fix it?
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think changing it won't change current log, only the future one. Do read this for mysql as well. But have you restarted the relevant service(s) including cron or rebooted afterwards?
  3. Poliman

    Poliman Member

    I tested it on postfix and dovecot, because currently I try secure it. They were restarted few times but logs in mail.err and mail.log are still with wrong time with 2h back. :) I didn't reboot server and cron.

    After reboot server is still this same in mail logs.
    Last edited: May 5, 2017

Share This Page