Hi 🙂
I recently have to restore MailCow from backup (disk failure). Every think restore very well and works fine. (using backup_and_restore.sh). On new server I have only one litte, annoying problem: time stamp in logs is in UTC… What to change to time stamp was in local time? On old server time stam was in local time.
Old server
root@mailcow-v1:/opt/mailcow-dockerized# timedatectl
Local time: Fri 2022-08-19 09:45:35 CEST
Universal time: Fri 2022-08-19 07:45:35 UTC
RTC time: Fri 2022-08-19 07:45:35
Time zone: Europe/Warsaw (CEST, +0200)
root@mailcow-v1:/opt/mailcow-dockerized# docker-compose logs -t --tail=5 postfix-mailcow
mailcowdockerized-postfix-mailcow-1 | 2022-08-19T09:40:09.625652636+02:00 Aug 19 09:40:09
mailcowdockerized-postfix-mailcow-1 | 2022-08-19T09:40:09.661837172+02:00 Aug 19 09:40:09
mailcowdockerized-postfix-mailcow-1 | 2022-08-19T09:40:09.691605301+02:00 Aug 19 09:40:09
mailcowdockerized-postfix-mailcow-1 | 2022-08-19T09:40:09.703580713+02:00 Aug 19 09:40:09
New server:
root@mailcow2:/opt/mailcow-dockerized# timedatectl
Local time: Fri 2022-08-19 09:35:24 CEST
Universal time: Fri 2022-08-19 07:35:24 UTC
RTC time: Fri 2022-08-19 07:35:24
Time zone: Europe/Warsaw (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
root@mailcow2:/opt/mailcow-dockerized# docker-compose logs -t --tail=5 sogo-mailcow
mailcowdockerized-sogo-mailcow-1 | 2022-08-19T07:32:37.669303138Z Aug 19 09:32:37 b74f963654da sogod [66]:
mailcowdockerized-sogo-mailcow-1 | 2022-08-19T07:33:23.785075481Z Aug 19 09:33:23 b74f963654da sogod [66]:
mailcowdockerized-sogo-mailcow-1 | 2022-08-19T07:33:31.704069312Z Aug 19 09:33:31 b74f963654da sogod [66]:
mailcowdockerized-sogo-mailcow-1 | 2022-08-19T07:34:37.738860349Z Aug 19 09:34:37 b74f963654da sogod [66]:
mailcowdockerized-sogo-mailcow-1 | 2022-08-19T07:35:19.772857233Z Aug 19 09:35:19 b74f963654da sogod [66]: