diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-30 08:25:24 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-30 09:13:43 -0500 |
| commit | 1c8af5ebabeabfffac431c257e794fb2bddd16e6 (patch) | |
| tree | a99e91f00cfc347a94a948af4da2d2b2673c85a1 /modules/host-environment.el | |
| parent | 0ff1a0d4f070c42418274b0e4c5713983750b597 (diff) | |
| download | dotemacs-1c8af5ebabeabfffac431c257e794fb2bddd16e6.tar.gz dotemacs-1c8af5ebabeabfffac431c257e794fb2bddd16e6.zip | |
fix(host-environment): correct docstring order in cj/detect-system-timezone
The numbered list in the docstring had file-comparison and TZ env var
swapped relative to what the code does. The code tries
cj/match-localtime-to-zoneinfo first, then falls back to TZ. Updated
the docstring so the numbering matches the actual `or' chain.
Surfaced while writing tests for the priority chain.
Diffstat (limited to 'modules/host-environment.el')
| -rw-r--r-- | modules/host-environment.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/host-environment.el b/modules/host-environment.el index 832cc195..154c5d04 100644 --- a/modules/host-environment.el +++ b/modules/host-environment.el @@ -125,8 +125,8 @@ find /usr/share/zoneinfo -type f ! -name `posixrules' \\ (defun cj/detect-system-timezone () "Detect the system timezone in IANA format (e.g., `America/Los_Angeles'). Tries multiple methods in order of reliability: -1. Environment variable TZ -2. File comparison of /etc/localtime with zoneinfo database +1. File comparison of /etc/localtime with zoneinfo database +2. Environment variable TZ 3. /etc/timezone file contents 4. /etc/localtime symlink target" (or |
