0

to set the time zone I tried following:

auser@localhost:~$ sudo timedatectl
      Local time: Fri 2019-05-17 06:46:14 UTC
  Universal time: Fri 2019-05-17 06:46:14 UTC
        RTC time: Fri 2019-05-17 06:46:13
       Time zone: n/a (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no
auser@localhost:~$ sudo timedatectl set-ntp 0
auser@localhost:~$ sudo timedatectl
      Local time: Fri 2019-05-17 06:46:34 UTC
  Universal time: Fri 2019-05-17 06:46:34 UTC
        RTC time: Fri 2019-05-17 06:46:33
       Time zone: n/a (UTC, +0000)
 Network time on: no
NTP synchronized: no
 RTC in local TZ: no
auser@localhost:~$ sudo timedatectl set-timezone Europe/Berlin
auser@localhost:~$ sudo timedatectl
      Local time: Fri 2019-05-17 08:46:56 CEST
  Universal time: Fri 2019-05-17 06:46:56 UTC
        RTC time: Fri 2019-05-17 06:46:55
       Time zone: Europe/Berlin (CEST, +0200)
 Network time on: no
NTP synchronized: no
 RTC in local TZ: no

Everything looks great but then reboot ...

auser@localhost:~$ sudo reboot
auser@localhost:~$ sudo timedatectl
      Local time: Fri 2019-05-17 06:48:51 UTC
  Universal time: Fri 2019-05-17 06:48:51 UTC
        RTC time: Fri 2019-05-17 06:48:51
       Time zone: n/a (UTC, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no

NTP synchronized switched to yes and Local time and Time zone switched back to UTC. How can I change these so that it survives a reboot?

4
  • Have you get a look at askubuntu.com/questions/641186/snappy-timezone ?
    – Ced
    May 17, 2019 at 10:36
  • yes I saw this but it says command not found if I type snappy
    – gmantoha
    May 17, 2019 at 10:39
  • Do sudo apt install ubuntu-snappy-cli
    – Ced
    May 17, 2019 at 10:55
  • Ubuntu Core does not use apt-get, see 'snap --help'!
    – gmantoha
    May 20, 2019 at 7:54

1 Answer 1

0

Do in order to install snappy:

sudo apt install ubuntu-snappy-cli

In order oo read the current configuration for ubuntu-core:

snappy config ubuntu-core

Then in order to update it:

CONFIG=/tmp/core_config

snappy config ubuntu-core > "$CONFIG"
sed -i 's/timezone: .*$/timezone: America\/Cordoba/' "$CONFIG"
sudo snappy config ubuntu-core "$CONFIG"

as mentionned here.

3
  • can't use apt: auser@localhost:~$ sudo apt install ubuntu-snappy-cli Ubuntu Core does not use apt-get, see 'snap --help'!
    – gmantoha
    May 17, 2019 at 11:17
  • try snap find ubuntu-core
    – Ced
    May 17, 2019 at 11:49
  • it finds: ubuntu-core ubuntu-core-slides snappy-debug fswebcam demo-wget and mysql-experimental
    – gmantoha
    May 20, 2019 at 7:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .