9fans archive / 1997 / 10 / 15 / prev next
From: Kazumi Iwane iwane@lit...
Subject: [9fans] /adm/timezone files
Date: Mon, 06 Oct 1997 13:08:53 +0900
According to ctime(2) and /sys/src/libc/9sys/ctime.c, files under
/adm/timezone should have at least 4 fields followed by a newline,
just like inferno's counterparts (/locale/*). As distributed,
files with no summer time specifications, such as
/adm/timezone/Japan, have only 2 fields, so the parsing fails and
the timezone defaults to GMT. The fix is as follows.
term% diff /n/cd/adm/timezone/Japan /adm/timezone/Japan
1c1
< JST 32400
---
> JST 32400 JST 32400
--
iwane@lit...
"This is where the future lies beneath the burning sulphur skies."
-- C.Hynde, 'Downtown (Akron)'