[sync] Sync4j and Outlook
Muskingum Web Manager
webmgr at muskingum.edu
Wed Oct 4 05:33:20 PDT 2006
Karsten, Jan,
Thanks for the suggestion! I was able to get it going with the following:
if ($a['DueDate'] != 0 && $a['DueDate'] != '45001231T230000Z') {
Thanks again for the advice, it was exactly the boost I needed on this!
I will probably have a few more questions as I continue working on this.
Aaron M. Hall
Muskingum College Web Coordinator
Phone: (740) 826-8055
E-mail: webmgr at muskingum.edu
Web: http://www.muskingum.edu/home/cns/
"Some people wish it could happen,
Some people think it will happen,
Others make it happen."
-----Original Message-----
From: sync-bounces at lists.horde.org [mailto:sync-bounces at lists.horde.org] On
Behalf Of Karsten Fourmont
Sent: Wednesday, October 04, 2006 05:41 AM
To: sync at lists.horde.org
Subject: Re: [sync] Sync4j and Outlook
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
>
--
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