aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-10-10 22:22:16 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-10-11 11:29:03 +0000
commitf78cfcd7d3f1f76a5c09c21d76b14983d8428c4d (patch)
treef6107fbcd629b428a044f2d112b24283d6e9192e
parent683558e2ed8fd40ce29453b8136a95bedf55991a (diff)
downloadguix-f78cfcd7d3f1f76a5c09c21d76b14983d8428c4d.tar
guix-f78cfcd7d3f1f76a5c09c21d76b14983d8428c4d.tar.gz
system: operating-system: Make the timezone field default to Etc/UTC.
* gnu/system.scm (<operating-system>) [timezone]: Default to "Etc/UTC".
-rw-r--r--doc/guix.texi2
-rw-r--r--gnu/system.scm3
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index be1b4fa378..5867acb746 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -16313,7 +16313,7 @@ The default set includes core utilities and it is good practice to
install non-core utilities in user profiles (@pxref{Invoking guix
package}).
-@item @code{timezone}
+@item @code{timezone} (default: @code{"Etc/UTC"})
A timezone identifying string---e.g., @code{"Europe/Paris"}.
You can run the @command{tzselect} command to find out which timezone
diff --git a/gnu/system.scm b/gnu/system.scm
index 66ca629d63..b7f19d741a 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -265,7 +265,8 @@ VERSION is the target version of the boot-parameters record."
(packages operating-system-packages ; list of (PACKAGE OUTPUT...)
(default %base-packages)) ; or just PACKAGE
- (timezone operating-system-timezone) ; string
+ (timezone operating-system-timezone
+ (default "Etc/UTC")) ; string
(locale operating-system-locale ; string
(default "en_US.utf8"))
(locale-definitions operating-system-locale-definitions ; list of <locale-definition>