Re: [O] Problem with Google Calendar Synchronization

2013-05-11 Thread Guido Van Hoecke
Hi Eric, >>> Hang on, I am still looking into the UTC aspect. >>> >>> Right now the offset is dependent upon the execution time rather than >>> upon the date being converted. >> >> Yes, if by execution time you mean by the time zone of the computer >> running the script. This is definitely a prob

Re: [O] Problem with Google Calendar Synchronization

2013-05-10 Thread Guido Van Hoecke
Hi Eric, > Guido Van Hoecke writes: > > [...] > >> Hang on, I am still looking into the UTC aspect. >> >> Right now the offset is dependent upon the execution time rather than >> upon the date being converted. > > Yes, if by execution time you mean by the time zone of the computer > running the s

Re: [O] Problem with Google Calendar Synchronization

2013-05-10 Thread Eric S Fraga
Guido Van Hoecke writes: [...] > Hang on, I am still looking into the UTC aspect. > > Right now the offset is dependent upon the execution time rather than > upon the date being converted. Yes, if by execution time you mean by the time zone of the computer running the script. This is definitel

Re: [O] Problem with Google Calendar Synchronization

2013-05-10 Thread Guido Van Hoecke
Eric, Eric S Fraga writes: > Guido Van Hoecke writes: > > > [...] > >> I have attached the corrected patch. >> >> I don't know whether I have access to Worg. >> Would you mind updating it? > > Okay; I'll try to do this early next week. Hang on, I am still looking into the UTC aspect. Right no

Re: [O] Problem with Google Calendar Synchronization

2013-05-09 Thread Eric S Fraga
Guido Van Hoecke writes: [...] > I have attached the corrected patch. > > I don't know whether I have access to Worg. > Would you mind updating it? Okay; I'll try to do this early next week. -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_8.0.2-101-gce5988

Re: [O] Problem with Google Calendar Synchronization

2013-05-09 Thread Guido Van Hoecke
Hi Eric, Eric S Fraga writes: > Guido Van Hoecke writes: > >> Eric, >> >> Eric S Fraga writes: > > [...] > >>> Suggestions on how to handle this case would be welcome, of course. >> >> I created a patch so that the date and time string is built directly >> from the iCal data for times before t

Re: [O] Problem with Google Calendar Synchronization

2013-05-09 Thread Eric S Fraga
Guido Van Hoecke writes: > Eric, > > Eric S Fraga writes: [...] >> Suggestions on how to handle this case would be welcome, of course. > > I created a patch so that the date and time string is built directly > from the iCal data for times before the epoch. This function produces > valid date/t

Re: [O] Problem with Google Calendar Synchronization

2013-05-09 Thread Guido Van Hoecke
Eric, Eric S Fraga writes: > Guido Van Hoecke writes: > > [...] > >> My ics file had a.o. my elder sister's birthday, and unfortunately her's >> as well as mine is (way) before the start of the epoch, so mktime >> returns a negative timestamp at line 63 and strftime at line 143 doesn't >> grok

Re: [O] Problem with Google Calendar Synchronization

2013-05-09 Thread Eric S Fraga
Guido Van Hoecke writes: [...] > My ics file had a.o. my elder sister's birthday, and unfortunately her's > as well as mine is (way) before the start of the epoch, so mktime > returns a negative timestamp at line 63 and strftime at line 143 doesn't > grok it. Ah, I see. The script should at le

Re: [O] Problem with Google Calendar Synchronization

2013-05-08 Thread Guido Van Hoecke
Eric S Fraga writes: > Guido Van Hoecke writes: > >> Hi, >> >> Thank you guys for your help. >> >> Got gawk from macports. > > Glad you got it. I did make use of whatever GNU awk provided and did > not try to keep to vanilla awk. Sorry about that! No prob at all! >> Hitting data error now: >

Re: [O] Problem with Google Calendar Synchronization

2013-05-08 Thread Eric S Fraga
Guido Van Hoecke writes: > Hi, > > Thank you guys for your help. > > Got gawk from macports. Glad you got it. I did make use of whatever GNU awk provided and did not try to keep to vanilla awk. Sorry about that! > Hitting data error now: > > gawk: ./importGoogleCalendar.awk:143: (FILENAME=- F

Re: [O] Problem with Google Calendar Synchronization

2013-05-07 Thread Guido Van Hoecke
Hi, Thank you guys for your help. Got gawk from macports. Hitting data error now: gawk: ./importGoogleCalendar.awk:143: (FILENAME=- FNR=34026) fatal: strftime: second argument less than 0 or too big for time_t I am investigating this now and will report my findings Guido. On 7 May 2013 15:

Re: [O] Problem with Google Calendar Synchronization

2013-05-07 Thread Henning Weiss
Hi, On Tue, May 7, 2013 at 12:26 PM, Tassilo Horn wrote: > Guido Van Hoecke writes: > > Hu Giudo, > > > When executing the awk script written by Eric S. Fraga at > > http://orgmode.org/worg/org-tutorials/org-google-sync.html I get > > following error: > > > > /usr/bin/awk: calling undefined fun

Re: [O] Problem with Google Calendar Synchronization

2013-05-07 Thread Tassilo Horn
Guido Van Hoecke writes: Hu Giudo, > When executing the awk script written by Eric S. Fraga at > http://orgmode.org/worg/org-tutorials/org-google-sync.html I get > following error: > > /usr/bin/awk: calling undefined function gensub > source line number 82 > > This is on an iMac with 'awk versi

[O] Problem with Google Calendar Synchronization

2013-05-07 Thread Guido Van Hoecke
Hi, When executing the awk script written by Eric S. Fraga at http://orgmode.org/worg/org-tutorials/org-google-sync.html I get following error: /usr/bin/awk: calling undefined function gensub source line number 82 This is on an iMac with 'awk version 20070501'. Is this outdated or so? Any hel