After a talk with stgraber, this is a due to the fact that the Ubuntu
LXC I build are using a pre-generated image which uses UTC by default.

If you want to change the time on Xenial, in my case date command or
other technic didn't have positive impact.

The only thing that work so far is to unlink /etc/localtime and link it
to the desired zone.

example :

#ls -altr /etc/localtime 
lrwxrwxrwx 1 root root 27 Oct 12 15:59 /etc/localtime -> 
/usr/share/zoneinfo/Etc/UTC

# unlink /etc/localtime

# ls -altr /etc/localtime 
ls: cannot access '/etc/localtime': No such file or directory

# ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime

# ls -altr /etc/localtime 
lrwxrwxrwx 1 root root 35 Oct 12 12:05 /etc/localtime -> 
/usr/share/zoneinfo/America/Toronto

Eric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632766

Title:
  time in lxc ubuntu template

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1632766/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to