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

index 695781f..0958378 100644 (file)
@@ -107,6 +107,31 @@ CalendarObjectValidResult CalendarTimezoneObject::ValidObject(){
 
 void CalendarTimezoneObject::ProcessData(){
 
+       // Process the data.
        
+       multimap<string,string> DataReceived;
+       map<string,string> PropertyData;
+       string *PropertyNameData = nullptr;
+       int ObjectSeekCount = 0;
+       
+       // Get the Date Time Stamp (DTSTAMP).
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "TZID");
+       
+       // Process the data from DTSTAMP.
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       TimeZoneDataTokens = DataReceived.begin()->first.substr(5);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               TimeZoneData = 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