// Process the DTEND.
- if (DateTimeStartData.size() > 0){
+ if (DateTimeEndData.size() > 0){
DataLine += "DTEND";
- if (DateTimeStartDataValue.size() > 0){
+ if (DateTimeEndDataValue.size() > 0){
DataLine += ";VALUE=";
- DataLine += DateTimeStartDataValue;
+ DataLine += DateTimeEndDataValue;
}
- if (DateTimeStartDataTimeZoneID.size() > 0){
+ if (DateTimeEndDataTimeZoneID.size() > 0){
DataLine += ";TZID=";
- DataLine += DateTimeStartDataTimeZoneID;
+ DataLine += DateTimeEndDataTimeZoneID;
}
- if (DateTimeStartDataTokens.size() > 0){
+ if (DateTimeEndDataTokens.size() > 0){
DataLine += ";";
- DataLine += DateTimeStartDataTokens;
+ DataLine += DateTimeEndDataTokens;
}
DataLine += ":";
- DataLine += DateTimeStartData;
+ DataLine += DateTimeEndData;
DataLine += "\n";
DataLineProcessed = OutputText(&DataLine);
if (SummaryDataAltRep.size() > 0){
- DataLine += ";ALTREP=";
+ DataLine += ";ALTREP=\"";
DataLine += SummaryDataAltRep;
+ DataLine += "\"";
}
if (SummaryDataLanguage.size() > 0){
- DataLine += ";TZID=";
+ DataLine += ";LANGUAGE=";
DataLine += SummaryDataLanguage;
}