From: Andrey Cherepanov <cas@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Часовой пояс + MD5SUM в пакете timezones
Date: Sat, 21 Nov 2020 17:50:59 +0300
Message-ID: <4507e993-099a-68f4-7cee-ca9bc9074c2b@altlinux.org> (raw)
In-Reply-To: <451f595e-a419-b57f-7681-1fd17d6a8ea5@altlinux.org>
21.11.2020 17:39, Andrey Cherepanov пишет:
> 21.11.2020 10:37, Anton Farygin пишет:
>> On 21.11.2020 09:49, Andrey Cherepanov wrote:
>>> 21.11.2020 00:12, Sergey Y. Afonin пишет:
>>>> On Friday 20 November 2020, Andrey Cherepanov wrote:
>>>>
>>>>> symbolicLinkTarget("/etc/localtime") ||
>>>> А почему именно симлинк? Какая им разница-то была? Может это баг
>>>> в Thunderbird?
>>>>
>>> В Red Hat это симлинк, указывающий на файл с полным название
>>> часового пояса. По имени целевого файла и определяют.
>>>
>> Это много где так.
>>
>> Правильный алогритм где-то был реализован (по моему в timedatectl).
>>
>> Он примерно такой:
>>
>> 1) посмотреть симлинк ли это -> идти по стандартной схеме
>>
>> 2) посмореть если это файл -> искать такой же файл по совпадению.
>>
>>
>> Для последнего, наверное, было бы здорово положить готовую базу
>> md5sum в пакет tzdata.
>>
>>
>> Но я бы ещё добавил первый шаг - если systemd, то спросить timezone у
>> него:
>> $ timedatectl show -p Timezone
>> Timezone=Europe/Moscow
>
> Антон, ты многого хочешь от разработчиков Mozilla. Я несколько дней
> угробил на то, чтобы убедиться:
>
> а) Они читают из /etc/sysconfig/clock первые 10 строк (правильный пояс
> указан у нас на 18 строке).
>
> б) Для проверки пояса они используют июнь и декабрь 2005 (!) года. Для
> Москвы это не бьётся (правила часового пояса сменились с 2005 года) и
> получаем снова тыковку.
>
> Если у кого есть желание написать им о таких выкрутасах, могут это
> сделать. Патч:
> http://git.altlinux.org/people/cas/packages/thunderbird.git?p=thunderbird.git;a=blob;f=thunderbird-fix-guess-timezone-in-calendar.patch;h=b27ea90c5659561490beab8818b6cdfb2e7572bf;hb=26e1276d85a7d9f60d09214c0a7cfe386a886dd7
>
https://bugzilla.mozilla.org/show_bug.cgi?id=1678839
<https://bugzilla.mozilla.org/show_bug.cgi?id=1678839>
--
Andrey Cherepanov
cas@altlinux.org
next prev parent reply other threads:[~2020-11-21 14:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-20 18:20 ` [devel] Часовой пояс Paul Wolneykien
2020-11-21 6:52 ` Andrey Cherepanov
2020-11-23 9:30 ` Sergey V Turchin
2020-11-20 19:05 ` Mikhail Efremov
2020-11-20 19:49 ` Andrey Savchenko
2020-11-21 6:48 ` Andrey Cherepanov
2020-11-20 21:12 ` Sergey Y. Afonin
2020-11-20 22:53 ` Paul Wolneykien
2020-11-21 7:37 ` [devel] Часовой пояс + MD5SUM в пакете timezones Anton Farygin
2020-11-21 14:39 ` Andrey Cherepanov
2020-11-21 14:50 ` Andrey Cherepanov [this message]
2020-11-22 14:08 ` Sergey Y. Afonin
2021-01-13 10:16 ` [devel] Часовой пояс Pavel Nakonechnyi
2021-01-13 10:33 ` Sergey V Turchin
2021-01-13 12:41 ` Pavel Nakonechnyi
2021-01-13 10:27 ` Arseny Maslennikov
2021-01-13 10:54 ` Alexey V. Vissarionov
2021-01-13 11:13 ` Arseny Maslennikov
2021-01-13 11:23 ` Sergey Afonin
2021-01-13 17:07 ` Andrey Cherepanov
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=4507e993-099a-68f4-7cee-ca9bc9074c2b@altlinux.org \
--to=cas@altlinux.org \
--cc=devel@lists.altlinux.org \
/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