From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <5cceefb562b4b4e36a2c223d3f67f42a@quanstro.net> References: <5cceefb562b4b4e36a2c223d3f67f42a@quanstro.net> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Pietro Gagliardi Date: Sat, 22 Mar 2008 14:42:02 -0400 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Daylight savings time Topicbox-Message-UUID: 7e28348a-ead3-11e9-9d60-3106f5b1d025 Thanks to both of you. I've been setting up virtual machines so many =20 times that I forget these subtle things. On Mar 22, 2008, at 2:06 PM, erik quanstrom wrote: >> Hello. How do you configure Plan 9 to support DST? I noticed that my >> clock is wrong just now. Thanks. > > dst is supported as long as your timezone is set correctly. > echo $timezone|sed 1q > should give you the skinny on yout timezone. the format is > stdcode stdoffsetsec dstcode dstoffsetsec > for example, for athens. ga or any other place on the us east > cost, it should be > EST -18000 EST EDT -14400 > which says that during standard time, the offset from GMT is > -18000 seconds, or -5 hrs. the offset during daylight savings time > is -4 hrs. the rest of the file is pairs of offsets bracketing the > start and end of dst periods. thus the only constraint on dst > periods is the offset from gmt can't change from period to period. > > if your timezone is not correct, make sure the timezone files are > synced with sources and > cp /adm/timezone/=AByourtimezone=BB /adm/timezone/local > ifs=3D() timezone=3D`{cat /adm/timezone/local} > > - erik > >