From 15677c035d713111ceeac94ced55181bdeba6118 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:20:58 +0000 Subject: [PATCH] Added code to process the DTSTAMP property in CalendarJournalObject. --- .../calendarjournal/CalendarJournal.cpp | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/objects/calendarjournal/CalendarJournal.cpp b/source/objects/calendarjournal/CalendarJournal.cpp index f3c66c7..d5bf6fa 100644 --- a/source/objects/calendarjournal/CalendarJournal.cpp +++ b/source/objects/calendarjournal/CalendarJournal.cpp @@ -144,5 +144,25 @@ void CalendarJournalObject::ProcessData(){ map 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 -- 2.39.5