You are not logged in.

#1 2010-02-23 12:57:25

jrs
Member
Registered: 2009-12-03
Posts: 23

calcurse some questions

I have some problems configuring calcurse.
First a question: is it possible to sync calcurse with a .ics file in the web? Trying to import it by typing the web address doesnt work.

Then i have a weird problem: when i import a calender file, something goes wrong with the timestamp. All the tasks are displayed 1 hour too early.. think this is related to some settings of the time zone? But the time which shows calcurse is correct.

The first thing could be solved by some script i think, but how can i change the time settings?

Thanks for help

Offline

#2 2010-02-23 16:53:17

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: calcurse some questions

as far as I know, with calcurse you must download the *.ics file locally and then import it.  and for the time/date problem is the calendar that you are importing from set to the same timezone as your computer? that might be worth taking a look at...


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#3 2010-02-23 17:03:44

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: calcurse some questions

Thanks for the information, so i'll have to help me with a script to get the actual file.
When I use sunbird to import the same file, the time is displayed correctly, so i think it may be related to calcurse. I'll try to figure out how it is saved in the calender-file..

Offline

#4 2010-02-23 17:24:02

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: calcurse some questions

Here is an example of the .ics file:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN

...

BEGIN:VEVENT
DTSTART:20100224T160000Z
DTEND:20100224T180000Z
DTSTAMP:20100223T170429Z

The time is saved in GMT time (I am in the zone GMT+1), seems that is why something goes wrong. There is no timezone specified in the calender-file, so maybe sunbird gets the right zone from the system while calcurse is not able to do so?
Any ideas?

Offline

#5 2010-02-23 17:44:54

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: calcurse some questions

Those times are UTC times (the "Z" denotes that). Are they being correctly specified?

See http://tools.ietf.org/html/rfc5545#section-3.3.5 for details.

If they are being incorrectly spec'd and you are scripting the import, you could fix the times in your script.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#6 2010-02-23 18:23:02

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: calcurse some questions

As far as I can see they are correctly specified in UTC time.

DTSTART:20100224T160000Z should be 20100224T170000 in my local time. In any other calender application it is adjusted to the right time zone.

Offline

#7 2010-02-23 20:14:40

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: calcurse some questions

Ah, I see. Misunderstood the issue.

Might be worth filing a bug with calcurse?

Meantime, one workaround could be (in the script) to ditch the "Z" and increment the hour?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#8 2010-02-23 20:35:07

jrs
Member
Registered: 2009-12-03
Posts: 23

Re: calcurse some questions

skanky wrote:

Might be worth filing a bug with calcurse?

Meantime, one workaround could be (in the script) to ditch the "Z" and increment the hour?

Yes, have been considering both. I'll see what i can do smile

thanks

Offline

#9 2010-02-23 20:51:27

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: calcurse some questions

Just checked the calcurse manual, apparently "timezones are not taken into account" when importing icalendar format.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB