Fixes for vTodo thingies -mig

svn path=/trunk/; revision=190
This commit is contained in:
Arturo Espinosa
1998-04-23 02:32:32 +00:00
parent 017a40b429
commit c79a97a8e1
5 changed files with 56 additions and 23 deletions

View File

@ -483,11 +483,18 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
ical->dtstart = 0;
/* dtend */
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
} else
ical->dtend = 0;
ical->dtend = 0; /* default value */
if (ical->type == ICAL_EVENT){
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
} else if (ical->type == ICAL_TODO){
if (has (o, VCDueProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
}
/* dcreated */
if (has (o, VCDCreatedProp)){
@ -775,7 +782,11 @@ ical_object_to_vobject (iCalObject *ical)
addPropValue (o, VCDTstartProp, isodate_from_time_t (ical->dtstart));
/* dtend */
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
if (ical->type == ICAL_EVENT){
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
} else if (ical->type == ICAL_TODO){
addPropValue (o, VCDueProp, isodate_from_time_t (ical->dtend));
}
/* dcreated */
addPropValue (o, VCDCreatedProp, isodate_from_time_t (ical->created));

View File

@ -483,11 +483,18 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
ical->dtstart = 0;
/* dtend */
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
} else
ical->dtend = 0;
ical->dtend = 0; /* default value */
if (ical->type == ICAL_EVENT){
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
} else if (ical->type == ICAL_TODO){
if (has (o, VCDueProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
}
/* dcreated */
if (has (o, VCDCreatedProp)){
@ -775,7 +782,11 @@ ical_object_to_vobject (iCalObject *ical)
addPropValue (o, VCDTstartProp, isodate_from_time_t (ical->dtstart));
/* dtend */
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
if (ical->type == ICAL_EVENT){
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
} else if (ical->type == ICAL_TODO){
addPropValue (o, VCDueProp, isodate_from_time_t (ical->dtend));
}
/* dcreated */
addPropValue (o, VCDCreatedProp, isodate_from_time_t (ical->created));

View File

@ -483,11 +483,18 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
ical->dtstart = 0;
/* dtend */
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
} else
ical->dtend = 0;
ical->dtend = 0; /* default value */
if (ical->type == ICAL_EVENT){
if (has (o, VCDTendProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
} else if (ical->type == ICAL_TODO){
if (has (o, VCDueProp)){
ical->dtend = time_from_isodate (str_val (vo));
free (the_str);
}
}
/* dcreated */
if (has (o, VCDCreatedProp)){
@ -775,7 +782,11 @@ ical_object_to_vobject (iCalObject *ical)
addPropValue (o, VCDTstartProp, isodate_from_time_t (ical->dtstart));
/* dtend */
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
if (ical->type == ICAL_EVENT){
addPropValue (o, VCDTendProp, isodate_from_time_t (ical->dtend));
} else if (ical->type == ICAL_TODO){
addPropValue (o, VCDueProp, isodate_from_time_t (ical->dtend));
}
/* dcreated */
addPropValue (o, VCDCreatedProp, isodate_from_time_t (ical->created));