+}
+
+void ContactDataObject::SaveTimezone(map<int, wxString> *TZList, map<int, wxString> *TZListAltID,
+ map<int, wxString> *TZListPID, map<int, wxString> *TZListType,
+ map<int, wxString> *TZListMediatype, map<int, int> *TZListPref,
+ map<int, wxString> *TZListTokens, wxString *SaveData, wxString DataType){
+
+ wxString ProcessData = "";
+
+ for (std::map<int, wxString>::iterator TZIter = TZList->begin();
+ TZIter != TZList->end(); TZIter++){
+
+ ProcessData.Append("TZ");
+
+ // Check if there is a value for TYPE.
+
+ if (DataType.size() > 0){
+
+ ProcessData.Append(";TYPE=");
+ ProcessData.Append(DataType);
+
+ }
+
+ // Check if there is a value for ALTID.
+
+ if ((*TZListAltID)[TZIter->first].size() > 0){
+
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append((*TZListAltID)[TZIter->first]);
+
+ }
+
+ // Check if there is a value for MEDIATYPE.
+
+ if ((*TZListMediatype)[TZIter->first].size() > 0){
+
+ ProcessData.Append(";MEDIATYPE=");
+ ProcessData.Append((*TZListMediatype)[TZIter->first]);
+
+ }
+
+ // Check if there is a value for PID.
+
+ if ((*TZListPID)[TZIter->first].size() > 0){
+
+ ProcessData.Append(";PID=");
+ ProcessData.Append((*TZListPID)[TZIter->first]);
+
+ }
+
+ // Check if there is a value for PREF.
+
+ if ((*TZListPref)[TZIter->first] > 0){
+
+ ProcessData.Append(";PREF=");
+ ProcessData.Append(wxString::Format("%i", (*TZListPref)[TZIter->first]));
+
+ }
+
+ // Check if there is a value for tokens.
+
+ if ((*TZListTokens)[TZIter->first].size() > 0){
+
+ ProcessData.Append(";");
+ ProcessData.Append((*TZListTokens)[TZIter->first]);
+
+ }
+
+ ProcessData.Append(":");
+ ProcessData.Append(TZIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+