diff options
author | Jonathan Marshall <jmarshall@xbmc.org> | 2013-11-30 11:52:26 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@xbmc.org> | 2013-11-30 11:52:26 +1300 |
commit | c6e75979fc94e91f86a846df276136b54c070b8e (patch) | |
tree | 25d6ab4d04558aa361183d5a4d94ae19f4b2f049 | |
parent | 3ad56fb03840c59b16d2fb757d83f3e13c5e90ff (diff) |
read/write dateadded uisng XMLUtils
-rw-r--r-- | xbmc/video/VideoInfoTag.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xbmc/video/VideoInfoTag.cpp b/xbmc/video/VideoInfoTag.cpp index 07cba40373..b538603caf 100644 --- a/xbmc/video/VideoInfoTag.cpp +++ b/xbmc/video/VideoInfoTag.cpp @@ -237,7 +237,7 @@ bool CVideoInfoTag::Save(TiXmlNode *node, const CStdString &tag, bool savePathIn XMLUtils::SetFloat(&resume, "total", (float)m_resumePoint.totalTimeInSeconds); movie->InsertEndChild(resume); - XMLUtils::SetString(movie, "dateadded", m_dateAdded.GetAsDBDateTime()); + XMLUtils::SetDateTime(movie, "dateadded", m_dateAdded); if (additionalNode) movie->InsertEndChild(*additionalNode); @@ -769,10 +769,7 @@ void CVideoInfoTag::ParseNative(const TiXmlElement* movie, bool prioritise) XMLUtils::GetDouble(resume, "total", m_resumePoint.totalTimeInSeconds); } - // dateAdded - CStdString dateAdded; - XMLUtils::GetString(movie, "dateadded", dateAdded); - m_dateAdded.SetFromDBDateTime(dateAdded); + XMLUtils::GetDateTime(movie, "dateadded", m_dateAdded); } bool CVideoInfoTag::HasStreamDetails() const |