Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process the DTSTAMP property in CalendarJournalObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:20:58 +0000 (14:20 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:20:58 +0000 (14:20 +0000)
source/objects/calendarjournal/CalendarJournal.cpp

index f3c66c7..d5bf6fa 100644 (file)
@@ -144,5 +144,25 @@ void CalendarJournalObject::ProcessData(){
        map<string,string> PropertyData;
        string *PropertyNameData = nullptr;
        int ObjectSeekCount = 0;
+
+       // Get the Date Time Stamp (DTSTAMP).
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DTSTAMP");
+       
+       // Process the data from DTSTAMP.
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       DateTimeStampTokens = DataReceived.begin()->first.substr(8);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               DateTimeStampData = 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