maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   WORKAROUND: Pimlico's Dates doesn't honour Olson time zone data (https://talk.maemo.org/showthread.php?t=24547)

tarek 2008-10-25 14:05

WORKAROUND: Pimlico's Dates doesn't honour Olson time zone data
 
Hey all,

I have been trying to synchronize pimlico with my computer in a way that makes sense. Right now, my setup involves the use of syncevolution. One unfortunate problem I've run into is that pimlico dates does not honour the TZID sent from Evolution on my main computer. The following shell script fixes this problem by basically doing away with time zones, which works just fine in my context. Make sure you backup your calendar.ics before playing with this! Also, you may want to make some changes, i.e., to your server and such.


Code:

#/bin/sh
syncevolution sync1
cp /home/user/.evolution/calendar/local/system/calendar.ics /tmp/calendar.ics.bak
cat /tmp/calendar.ics.bak | sed -e 's/DTSTART\;TZID=\/softwarestudio.org\/Tzfile\/America\/Montreal/DTSTART/g' >/tmp/newcal-intermediate.ics
cat /tmp/newcal-intermediate.ics | sed -e 's/DTEND\;TZID=\/softwarestudio.org\/Tzfile\/America\/Montreal/DTEND/g' >/home/user/.evolution/calendar/local/system/calendar.ics
killall e-calendar-factory



All times are GMT. The time now is 04:10.

vBulletin® Version 3.8.8