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 -> 

# 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 -> 


You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  time in lxc ubuntu template

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to