From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 26 Sep 2005 14:33:58 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] /etc/timezone Message-ID: <20050926103358.GB27562@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20050923112012.GB29296@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/WwmFnJnmDyWGHa4" Content-Disposition: inline In-Reply-To: X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Cc: X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 10:34:03 -0000 Archived-At: List-Archive: List-Post: --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 26, 2005 at 11:15:01AM +0600, Vladimir V. Kamarzin wrote: > >>>>> On 23 Sep 2005 at 17:20 "DVL" =3D=3D Dmitry V Levin writes: >=20 > >> =E1 =D0=CF=DE=C5=CD=D5 =D5 =CE=C1=D3 =CE=C5=D4=D5 =D3=C1=C2=D6=C1? > DVL> =E1 =DE=D4=CF =DC=D4=CF =D4=C1=CB=CF=C5 =C9 =DE=C5=CD =CF=CE=CF =D7= =CF=D3=D4=D2=C5=C2=CF=D7=C1=CE=CF? >=20 > root@vvk ~ # ls /etc/timezone > ls: /etc/timezone: No such file or directory > root@vvk ~ # echo "Asia/Yekaterinburg" > /etc/timezone > root@vvk ~ # perl -MDate::Manip -le 'print ParseDate `date --date "1 hour= ago" "+%Y-%m-%d %H:00"`' > ERROR: Date::Manip unable to determine TimeZone. =F0=CF=D0=D2=CF=C2=D5=CA=D4=C5 =D5=D3=D4=C1=CE=CF=D7=C9=D4=D8 =D0=C1=CB=C5= =D4 glibc-timezones. > at /usr/lib/perl5/vendor_perl/Date/Manip.pm line 3636 > Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/D= ate/Manip.pm line 677 > Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/Dat= e/Manip.pm line 1447 > Date::Manip::ParseDate('2005-09-26 10:00\x{a}') called at -e line= 1 > root@vvk ~ # echo "+0500" > /etc/timezone > root@vvk ~ # perl -MDate::Manip -le 'print ParseDate `date --date "1 hour= ago" "+%Y-%m-%d %H:00"`' > 2005092610:00:00 >=20 > =E9=DA-=DA=C1 =DC=D4=CF=C7=CF =CE=C5 =D2=C1=C2=CF=D4=C1=C5=D4 logwatch, = =CB=CF=D4=CF=D2=D9=CA =D1 =CE=C1 =C4=CE=D1=C8 =CF=D4=D0=D2=C1=D7=C9=CC =D7 = Incoming. =F1 =D7=D3=A3 =D2=C1=D7=CE=CF =CE=C5 =D0=CF=CE=C9=CD=C1=C0, =DE=D4=CF =DC= =D4=CF =DA=C1 =C6=C1=CA=CC =C9 =D0=CF=DE=C5=CD=D5 =CF=CE =C4=CF=CC=D6=C5=CE= =D3=D5=DD=C5=D3=D4=D7=CF=D7=C1=D4=D8. $ LANG=3DC strace -e trace=3Dfile date 2>&1 >/dev/null |fgrep '"/etc/' access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or dire= ctory) open("/etc/ld.so.cache", O_RDONLY) =3D 3 open("/etc/localtime", O_RDONLY) =3D 3 stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D815, ...}) =3D 0 stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D815, ...}) =3D 0 =EB=C1=CB =D7=C9=C4=C9=D4=C5, date =CE=C9=DE=C5=C7=CF =D0=CF=C4=CF=C2=CE=CF= =C7=CF =CE=C5 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4. =EE=C1=D7=C5=D2=CE=CF=C5, = =DC=D4=CF =CB=C1=CB=C1=D1-=D4=CF =CF=D4=D3=C5=C2=D1=D4=C9=CE=C1 =CD=CF=C4=D5=CC=D1 Date::Manip. --=20 ldv --/WwmFnJnmDyWGHa4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDN86V9viEa8HiNCkRAnKMAJ4pkr38pfl90+fvSpypmRCkHOYdnACffsdM EV6BEyDSo1c8Jkg/6Ge7a3E= =bzYM -----END PGP SIGNATURE----- --/WwmFnJnmDyWGHa4--