timezone set to n/a on ubuntu core
Bug #1733881 reported by
Sergio Cazzolato
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In ubuntu core then I run the command timedatectl I see the timezone description set to n/a
test@localhost:~$ timedatectl
Local time: Tue 2017-03-14 20:12:11 UTC
Universal time: Tue 2017-03-14 20:12:11 UTC
RTC time: n/a
Time zone: n/a (UTC, +0000)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
In /etc/timezone I see "Etc/UTC"
It can be reproduced in pi3 stable/beta image
Related branches
~peat-new/ubuntu/+source/systemd:ubuntu-jammy_-_timedated-symlink
Merged
into
~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-jammy
at
revision b58c1227b47eb2b8e800d8667791a6dea4558ffc
- Dan Streetman: Disapprove (meaningless)
- Dimitri John Ledkov: Pending requested
-
Diff: 131 lines (+91/-0)4 files modifieddebian/changelog (+8/-0)
debian/patches/debian/UBUNTU-Fix-timezone-setting-on-read-only-etc.patch (+28/-0)
debian/patches/debian/timedatectl-lp1650688.patch (+53/-0)
debian/patches/series (+2/-0)
~peat-new/ubuntu/+source/systemd:ubuntu-bionic_-_timedated-symlink
Merged
into
~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-bionic
at
revision 95acefc991059eae388d50cb9eba04f06af59d59
- Dimitri John Ledkov: Pending requested
-
Diff: 119 lines (+88/-0)4 files modifieddebian/changelog (+10/-0)
debian/patches/debian/UBUNTU-Fix-timezone-setting-on-read-only-etc.patch (+25/-0)
debian/patches/debian/timedatectl-lp1650688.patch (+51/-0)
debian/patches/series (+2/-0)
~peat-new/ubuntu/+source/systemd:ubuntu-focal_-_timedated-symlink
Merged
into
~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal
at
revision 9cbfa9126a0a7980e55889d9b44c1b4b210520cf
- Snappy Developers: Pending requested
- Canonical Foundations Team: Pending requested
- Dimitri John Ledkov: Pending requested
-
Diff: 124 lines (+93/-0)4 files modifieddebian/changelog (+10/-0)
debian/patches/debian/UBUNTU-Fix-timezone-setting-on-read-only-etc.patch (+28/-0)
debian/patches/debian/timedatectl-lp1650688.patch (+53/-0)
debian/patches/series (+2/-0)
~peat-new/ubuntu/+source/systemd:ubuntu-impish_-_timedated-symlink
Ready for review
for merging
into
~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-impish
- Dimitri John Ledkov: Pending requested
-
Diff: 124 lines (+90/-0)4 files modifieddebian/changelog (+7/-0)
debian/patches/debian/UBUNTU-Fix-timezone-setting-on-read-only-etc.patch (+28/-0)
debian/patches/debian/timedatectl-lp1650688.patch (+53/-0)
debian/patches/series (+2/-0)
There are two issues here IMHO ...
first of all the test should actually look for the timezone, not at the description ... i.e. the first value before the commma between the brackets, since that is what is also used internally by i.e. the date command ...
second i think we should simply make /etc/timezone default to "UTC" instead of "Etc/UTC" at build time, that gives us a sane default and will result in:
Time zone: UTC (UTC, +0000)