Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process LAST-MODIFIED in CalendarTimezoneObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 3 Feb 2016 20:09:01 +0000 (20:09 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 3 Feb 2016 20:09:01 +0000 (20:09 +0000)
source/objects/calendartimezone/CalendarTimezone.cpp

index 0958378..893e8d0 100644 (file)
@@ -134,4 +134,22 @@ void CalendarTimezoneObject::ProcessData(){
                
        }
        
+       // Process the data from LAST-MODIFIED.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "LAST-MODIFIED");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       LastModifiedTokens = DataReceived.begin()->first.substr(14);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               LastModifiedData = DataReceived.begin()->second;
+               
+       }
+       
 }
\ No newline at end of file
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