summaryrefslogtreecommitdiff
path: root/src/migration-scripts/system
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-07 16:16:27 +0200
committerGitHub <noreply@github.com>2023-09-07 16:16:27 +0200
commit05dd8edcae53c8c2ca318e3adc8900c1615569db (patch)
tree030f9e9a58f8a2a83b80d46f3d9dfd7783015acb /src/migration-scripts/system
parent50f3e9f66abfd7e0cad344c4c0fac0df7bc322df (diff)
parentc85095572c0a0e10a281230b6d39cfd0f78ec17a (diff)
downloadvyos-1x-05dd8edcae53c8c2ca318e3adc8900c1615569db.tar.gz
vyos-1x-05dd8edcae53c8c2ca318e3adc8900c1615569db.zip
Merge pull request #2217 from sarthurdev/T5555
system: T5555: Fix time-zone migrator changing valid time-zones to UTC
Diffstat (limited to 'src/migration-scripts/system')
-rwxr-xr-xsrc/migration-scripts/system/13-to-142
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/system/13-to-14 b/src/migration-scripts/system/13-to-14
index 1fa781869..5b781158b 100755
--- a/src/migration-scripts/system/13-to-14
+++ b/src/migration-scripts/system/13-to-14
@@ -34,7 +34,7 @@ else:
# retrieve all valid timezones
try:
- tz_datas = cmd('find /usr/share/zoneinfo/posix -type f -or -type l | sed -e s:/usr/share/zoneinfo/posix/::')
+ tz_datas = cmd('timedatectl list-timezones')
except OSError:
tz_datas = ''
tz_data = tz_datas.split('\n')