ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.org>
Subject: Re: [devel] /etc/timezone
Date: Mon, 26 Sep 2005 14:33:58 +0400
Message-ID: <20050926103358.GB27562@basalt.office.altlinux.org> (raw)
In-Reply-To: <m3ll1k8l62.fsf@vvk.pp.ru>

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

On Mon, Sep 26, 2005 at 11:15:01AM +0600, Vladimir V. Kamarzin wrote:
> >>>>> On 23 Sep 2005 at 17:20 "DVL" == Dmitry V Levin writes:
> 
> >> А почему у нас нету сабжа?
>  DVL> А что это такое и чем оно востребовано?
> 
> 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.

Попробуйте установить пакет glibc-timezones.

>  at /usr/lib/perl5/vendor_perl/Date/Manip.pm line 3636
>         Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/Date/Manip.pm line 677
>         Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/Date/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
> 
> Из-за этого не работает logwatch, который я на днях отправил в Incoming.

Я всё равно не понимаю, что это за файл и почему он должен существовать.

$ LANG=C strace -e trace=file date 2>&1 >/dev/null |fgrep '"/etc/'
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/etc/localtime", O_RDONLY)        = 3
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=815, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=815, ...}) = 0

Как видите, date ничего подобного не использует.  Наверное, это какая-то
отсебятина модуля Date::Manip.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-09-26 10:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-23  7:52 Vladimir V. Kamarzin
2005-09-23 11:20 ` Dmitry V. Levin
2005-09-26  5:15   ` Vladimir V. Kamarzin
2005-09-26  7:33     ` Sergey Pinaev
2005-09-26  8:23       ` Vladimir V. Kamarzin
2005-09-26  8:26         ` Sergey Pinaev
2005-09-26 10:05           ` Vladimir V. Kamarzin
2005-09-26 10:05             ` Sergey Pinaev
2005-09-26 10:33     ` Dmitry V. Levin [this message]
2005-09-27  5:38       ` Vladimir V. Kamarzin
2005-09-27  9:06         ` Dmitry V. Levin
2005-09-27  9:58           ` Vladimir V. Kamarzin
2005-09-27 15:14           ` Вячеслав Диконов
2005-09-27 22:37             ` Dmitry V. Levin
2005-09-27 15:32           ` Andrey Rahmatullin
2005-09-27 15:31         ` Andrey Rahmatullin
2005-09-26 11:54     ` [devel] /etc/timezone Alexey Tourbin
2005-09-27  5:32       ` Vladimir V. Kamarzin
2005-09-23 14:35 ` [devel] /etc/timezone Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050926103358.GB27562@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@altlinux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git