Re: Caldav invite utc
Kamer Yıldız <[email protected]>
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <AM7PR02MB6291E1293DF1E33287C3558AA7509@AM7PR02MB6291.eurprd02.prod.outlook.com> |
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 <[email protected]> ş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 issues Dacoda 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 time of troubleshooting 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 the cyrus-timezones package installled. That might solve all of your problems. I've attached the shell commands below in case they prove useful for your 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-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" ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/T8e43097312c6d850-M7ccc85deb10c9a3d251e578a Delivery options: https://cyrus.topicbox.com/groups/info/subscription
cyrus-timezone-shell-commands.txt
(text/plain, 1.6 KB)
$ 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"