emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem with Google Calendar Synchronization


From: Eric S Fraga
Subject: Re: [O] Problem with Google Calendar Synchronization
Date: Thu, 9 May 2013 15:05:06 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Guido Van Hoecke <address@hidden> writes:

> Eric,
>
> Eric S Fraga <address@hidden> 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/time strings albeit without weekday info.
>
> Patch file is attached.

Excellent.  Thanks for this.  Can you update the file on Worg directly?
If not, I will try to do it.

One point, however.  Should the first return statement in your
datetimestring(input) function (see last line in patch excerpt below)
refer to "input" instead of "datetmp"?  What you have works because of
all variables being global but is less clear than using the argument, I
would suggest?

> +function datetimestring(input)
> +{
> +    # try to create datetimestring from the datetimestamp
> +    timestamp = datetimestamp(input);
> +    if (timestamp > 0)
> +        return strftime("%Y-%m-%d %a %H:%M", datetimestamp(datetmp));

Thanks again,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0.2-101-gce5988




reply via email to

[Prev in Thread] Current Thread [Next in Thread]