On Sun, Sep 25, 2016 at 11:29:46PM +0200, Alexander Hall wrote: > On Sun, Sep 25, 2016 at 11:12:56PM +0300, Kihaguru Gathura wrote: > > > B: Section 4 below: Why does running uptime program under chroot yield time > > that is not accurate? 6:54PM while the actual time was 9:54PM produced by > > running uptime as root immediately after. > > $ man localtime > > specifically, you need to copy /etc/localtime into the chroot.
Hrm, lemme rephrase. Within the chroot, reading /etc/localtime should give you the contents of your local time zone file. Outside the chroot, it's normally a symlink into /usr/share/zoneinfo/<your_timezone_here>. /Alexander