Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-13 07:15:18 +0000
committerGitHub <noreply@github.com>2021-04-13 07:15:18 +0000
commit9f21ec713dc1776e943ad060f3b5febc11f16753 (patch)
tree1c58d946e370d5ccaa0d9e5534e1e48672f0b764 /archinstall/lib/user_interaction.py
parent4391dd68d5a7d46d40db6fccbf352ada6a1d1c63 (diff)
parent60ee752a12b73b50e9b5488e1a34070af13d983b (diff)
Merge pull request #295 from dylanmtaylor/patch-3
Default timezone to UTC (very useful for servers)
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 16627794..3d9a468b 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -130,7 +130,9 @@ def ask_for_additional_users(prompt='Any additional users to install (leave blan
return users, super_users
def ask_for_a_timezone():
- timezone = input('Enter a valid timezone (Example: Europe/Stockholm): ').strip()
+ timezone = input('Enter a valid timezone (examples: Europe/Stockholm, US/Eastern) or press enter to use UTC: ').strip()
+ if timezone == '':
+ timezone = 'UTC'
if (pathlib.Path("/usr")/"share"/"zoneinfo"/timezone).exists():
return timezone
else: