[sync] Sync4j and Outlook
Karsten Fourmont
fourmont at gmx.de
Wed Oct 4 02:40:48 PDT 2006
try simply
if (!empty($a['DueDate']) && $a['DueDate'] != '45001231T230000Z') {
$vtodo->setAttribute('DUE', $iCal->_parseDateTime($a['DueDate']));
}
I was always wondering why sync4j used this strange "45001231T230000Z"
timestamp to indicate an empty due field...
Cheers,
Karsten
Quoting Muskingum Web Manager <webmgr at muskingum.edu>:
> Karsten-- it seems to be 0.
>
> Jan-- That would make sense to me, how should I go about testing that?
>
> if ($a['DueDate'] == 0) {
> $vtodo->setAttribute('DUE', 0);
> } elseif ($a['DueDate'] != '45001231T230000Z') {
> $vtodo->setAttribute('DUE',
> $iCal->_parseDateTime($a['DueDate']));
> }
>
> This is what I'm using right now, which gets me from December 1969 to
> September 1970 (hooray progress!)... (as opposed to leaving out the initial
> 'if' and making the 'elseif' an 'if' (as is currently in CVS).
>
> I've messed around with changing ($a['DueDate'] == 0) and ('DUE', 0) in
> various formats and values to no other success.
>
> Regards,
> Aaron
>
> -----Original Message-----
> To: sync at lists.horde.org
> Subject: Re: [sync] Sync4j and Outlook
>
>> Muskingum Web Manager wrote:
>>> Update:
>>>
>>> I've updated my implementations of SyncML and iCalendar modules...
>>>
>>> 1. At this point, the issue with 1 [below] is correct--- the proper days
> are
>>> synchronized now, EXCEPT, Tasks with no due date display as being due
>>> "December 31, 1969." Any thoughts on why?
>> can you find out what sync4j sends as value for "DueDate" if no
>> duedate is provided? maybe 0 or a negative value?
>
> Shouldn't we leave out the DUE attribute if a due date is not set?
>
> Jan.
>
>
> --
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>
More information about the sync
mailing list