Skip to content

Commit 8ab6d40

Browse files
ericonrVaelatern
authored andcommitted
rc.conf: add note recommending /etc/localtime
Recommend users to symlink their timezone to /etc/localtime instead of setting TZ in /etc/rc.conf. List disadvantages of setting it in rc.conf.
1 parent 05c6e86 commit 8ab6d40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rc.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
# Set RTC to UTC or localtime.
1111
#HARDWARECLOCK="UTC"
1212

13-
# Set timezone, availables timezones at /usr/share/zoneinfo.
13+
# Set timezone, availables timezones can be found at /usr/share/zoneinfo.
14+
#
15+
# NOTE: it's preferred to set the timezone in /etc/localtime instead:
16+
# - ln -sf /usr/share/zoneinfo/<timezone> /etc/localtime
17+
# Setting the timezone here requires a reboot to apply any changes/fixes
18+
# and read-write access to the filesystem.
19+
#
1420
#TIMEZONE="Europe/Madrid"
1521

1622
# Keymap to load, see loadkeys(8).

0 commit comments

Comments
 (0)