I've got Ubuntu 16.04 LTS running in a Docker container (hosted on macOS). The date/time is off by about four days.
$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
$ date
Sun May 7 05:57:21 UTC 2017
Effective date is 11 May 2017 06:17:13 UTC.
I wanted to fix this (checking this and this) but I can't even run timedatectl
:
$ timedatectl status
Failed to create bus connection: No such file or directory
How do I fix this?
ls -l /etc/localtime
shows that it correctly points to/usr/share/zoneinfo/Etc/UTC
. Runningdpkg-reconfigure -f noninteractive tzdata
thus doesn't have any effect, the date is still off by ~4d. – Efremdate
on the host OS returns the correct values. To reproduce you can rundocker run --rm -ti marcelstoer/nodemcu-build date
. – EfremThu May 11 08:06:23 UTC 2017
– Monad