< ^ txt
Mon Mar 9 07:57:36 EDT 2015
Slept OK, although I went to bed a little late. The weather is significantly warmer.
Goals:
Work:
- Write up something about UEFI booting
https://www.happyassassin.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/
No time. Database issue.
Home:
- Take out trash
Done.
- Work on S&W Complete re-typeset
Done.
Questions:
- Daylight savings time recently kicked in. Where is timezone info being set on linux these days?
There's an '/etc/timezone':
$ cat /etc/timezone
America/New_York
but:
$ man 5 timezone
No manual entry for timezone in section 5
Hmm.
$ man -k timezone
localtime (5) - Local timezone configuration file
Time::Zone (3pm) - - miscellaneous timezone manipulations routines
timezone (3) - initialize time conversion information
tzfile (5) - timezone information
tzselect (1) - view timezones
tzselect (8) - select a timezone
zdump (8) - timezone dumper
zic (8) - timezone compiler
$ man 5 localtime
LOCALTIME(5) localtime LOCALTIME(5)
NAME
localtime - Local timezone configuration file
SYNOPSIS
/etc/localtime -> ../usr/share/zoneinfo/...
DESCRIPTION
The /etc/localtime file configures the system-wide timezone of the
local system that is used by applications for presentation to the user.
It should be an absolute or relative symbolic link pointing to
/usr/share/zoneinfo/, followed by a timezone identifier such as
"Europe/Berlin" or "Etc/UTC". The resulting link should lead to the
corresponding binary tzfile(5) timezone data for the configured
timezone.
Because the timezone identifier is extracted from the symlink target
name of /etc/localtime, this file may not be a normal file or hardlink.
The timezone may be overridden for individual programs by using the TZ
environment variable. See environ(7).
You may use timedatectl(1) to change the settings of this file from the
command line.
SEE ALSO
systemd(1), tzset(3), localtime(3), timedatectl(1), systemd-
timedated.service(8)
$ file /etc/localtime
/etc/localtime: timezone data, version 2, 4 gmt time flags, 4 std time flags, no leap seconds, 235 transition times, 4 abbreviation chars
$ timedatectl status
Local time: Mon 2015-03-09 08:12:55 EDT
Universal time: Mon 2015-03-09 12:12:55 UTC
RTC time: Sun 2015-03-08 12:12:28
Time zone: America/New_York (EDT, -0400)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2015-03-08 01:59:59 EST
Sun 2015-03-08 03:00:00 EDT
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2015-11-01 01:59:59 EDT
Sun 2015-11-01 01:00:00 EST
The 'list-timezones' and 'set-timezone' arguments to `timedatectl` are the answer, I guess.
$ timedatectl list-timezones | grep Detroit
America/Detroit
$ sudo timedatectl set-timezone America/Detroit
$ cat /etc/timezone
America/Detroit
Huh. Looks like it sets the old-style '/etc/timezone' file too. I assume '/etc/timezone' is deprecated.
< ^ txt