Thank you for your reply. I will try. I read something about tzdist on cyrus' website and I think version 3.0.16 doesn't have tzdist support. If I can't find a solution, I will try the updated cyrus version on debian.
Dacoda Strack <dacoda.strack@xxxxxxxxx> şunları yazdı (10 Oca 2022 21:56):
Kamer Yıldız wrote:
i'm using centos 7 and cyrus version 3.0.16
Alright, I'm using Fedora 35, but as they're both RedHat based,hopefully there shouldn't be any issuesDacoda Strack wrote:
What distribution are you using? If I recall correctly, on Fedora I
had some similar issues and had to grab the timezones database in
order for this to work.
I will be able to take another look when back at home and perhaps
provide more details.
Alright... Here are some shell commands I was running during the timeoftroubleshooting my issues with timezones.To be frank, I'm not sure of exactly how much help they will be to you.The first thing I would suggest is checking whether you have thecyrus-timezones package installled. That might solve all of yourproblems. I've attached the shell commands below in case they prove useful foryour investigation.$ curl \ -X PROPFIND \ ${cyrusBaseUrl}/dav/calendars/user/${cyrusUser}/${calendar}/ \ | xmllint --format /dev/stdin \caldav.pretty.xml
$ xmllint \ --xpath "//*[local-name()='multistatus']/*[local-name()='response']/*[local-name()='href']/text()" \ caldav.pretty.xml \paths
$ \ while read path do curl -X DELETE ${cyrusBaseUrl}${path} done < paths$ ls -laZ /var/lib/imap/zoneinfo$ journalctl -fxeu cyrus-imapd$ dnf repoquery -l --installed cyrus-imapd-vzic$ curl -LO https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz$ tar xzvf tzdata2021a.tar.gz $ cd tzdata/$ vzic --pure --olson-dir . --output-dir output-zone-data$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir . --output-diroutput-zone-data$ make$ make tzselect$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir /usr/share/zoneinfo--output-dir output-zone-data$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir . --output-diroutput-zone-data$ /usr/libexec/cyrus-imapd/vzic --dump --pure --olson-dir . --output-dir output-zone-data$ strings /usr/libexec/cyrus-imapd/vzic | grep Day$ pkg-config --variable=zoneinfo_dir cyrus-timezones$ pkg-config --variable=zoneinfo_dir cyrus-imapd$ dnf search timezones$ sudo dnf install -y cyrus-timezones$ sudo systemctl restart cyrus-imapd$ journalctl -fxeu cyrus-imapd$ ctl_zoneinfo $ sudo ctl_zoneinfo -v -C /etc/imapd.conf -r "IANA Time ZoneDatabase:2020a"$ sudo systemctl restart cyrus-imapd$ journalctl -fxeu cyrus-imapd$ ln -s /usr/share/cyrus-timezones/zoneinfo/ /var/lib/imap/zoneinfo$ ctl_zoneinfo -v -C /etc/imapd.conf -r "IANA Time Zone Database:2020a"------------------------------------------Cyrus: InfoPermalink: https://cyrus.topicbox.com/groups/info/T8e43097312c6d850-M69123fb097718a908a7a868dDelivery options: https://cyrus.topicbox.com/groups/info/subscription
|
$ curl \
-X PROPFIND \
${cyrusBaseUrl}/dav/calendars/user/${cyrusUser}/${calendar}/ \
| xmllint --format /dev/stdin \
> caldav.pretty.xml
$ xmllint \
--xpath "//*[local-name()='multistatus']/*[local-name()='response']/*[local-name()='href']/text()" \
caldav.pretty.xml \
> paths
$ \
while read path
do
curl -X DELETE ${cyrusBaseUrl}${path}
done < paths
$ ls -laZ /var/lib/imap/zoneinfo
$ journalctl -fxeu cyrus-imapd
$ dnf repoquery -l --installed cyrus-imapd-vzic
$ curl -LO https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz
$ tar xzvf tzdata2021a.tar.gz
$ cd tzdata/
$ vzic --pure --olson-dir . --output-dir output-zone-data
$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir . --output-dir output-zone-data
$ make
$ make tzselect
$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir /usr/share/zoneinfo --output-dir output-zone-data
$ /usr/libexec/cyrus-imapd/vzic --pure --olson-dir . --output-dir output-zone-data
$ /usr/libexec/cyrus-imapd/vzic --dump --pure --olson-dir . --output-dir output-zone-data
$ strings /usr/libexec/cyrus-imapd/vzic | grep Day
$ pkg-config --variable=zoneinfo_dir cyrus-timezones
$ pkg-config --variable=zoneinfo_dir cyrus-imapd
$ dnf search timezones
$ sudo dnf install -y cyrus-timezones
$ sudo systemctl restart cyrus-imapd
$ journalctl -fxeu cyrus-imapd
$ ctl_zoneinfo
$ sudo ctl_zoneinfo -v -C /etc/imapd.conf -r "IANA Time Zone Database:2020a"
$ sudo systemctl restart cyrus-imapd
$ journalctl -fxeu cyrus-imapd
$ ln -s /usr/share/cyrus-timezones/zoneinfo/ /var/lib/imap/zoneinfo
$ ctl_zoneinfo -v -C /etc/imapd.conf -r "IANA Time Zone Database:2020a"