Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
DTEND now using the correct variables in SaveData for CalendarEventObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 31 May 2016 23:07:19 +0000 (00:07 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 31 May 2016 23:07:19 +0000 (00:07 +0100)
source/objects/calendarevent/CalendarEvent-Save.cpp

index a1d743c..1d1edcc 100644 (file)
@@ -107,33 +107,33 @@ void CalendarEventObject::SaveObjectData(string *SaveData){
        
        // 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);
@@ -153,14 +153,15 @@ void CalendarEventObject::SaveObjectData(string *SaveData){
                
                if (SummaryDataAltRep.size() > 0){
                
-                       DataLine += ";ALTREP=";
+                       DataLine += ";ALTREP=\"";
                        DataLine += SummaryDataAltRep;
+                       DataLine += "\"";
                        
                }
                
                if (SummaryDataLanguage.size() > 0){
                
-                       DataLine += ";TZID=";
+                       DataLine += ";LANGUAGE=";
                        DataLine += SummaryDataLanguage;                        
                        
                }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy