Permalink
Browse files

json-rpc: return "lastmodified" in database datetime format (fixes #1…

…4836)
  • Loading branch information...
Montellese committed Jan 11, 2014
1 parent deb47e9 commit 20717c1b0cc2e5b35996be52cabd7267e0799995
View
@@ -685,6 +685,7 @@ void CFileItem::Serialize(CVariant& value) const
value["strPath"] = m_strPath;
value["dateTime"] = (m_dateTime.IsValid()) ? m_dateTime.GetAsRFC1123DateTime() : "";
+ value["lastmodified"] = m_dateTime.IsValid() ? m_dateTime.GetAsDBDateTime() : "";
value["size"] = m_dwSize;
value["DVDLabel"] = m_strDVDLabel;
value["title"] = m_strTitle;
@@ -173,12 +173,6 @@ bool CFileItemHandler::GetField(const std::string &field, const CVariant &info,
return true;
}
}
-
- if (field == "lastmodified" && item->m_dateTime.IsValid())
- {
- result[field] = item->m_dateTime.GetAsLocalizedDateTime();
- return true;
- }
if (item->HasProperty(field))
{
@@ -22,7 +22,7 @@
namespace JSONRPC
{
const char* const JSONRPC_SERVICE_ID = "http://xbmc.org/jsonrpc/ServiceDescription.json";
- const char* const JSONRPC_SERVICE_VERSION = "6.13.1";
+ const char* const JSONRPC_SERVICE_VERSION = "6.13.2";
const char* const JSONRPC_SERVICE_DESCRIPTION = "JSON-RPC API of XBMC";
const char* const JSONRPC_SERVICE_TYPES[] = {

0 comments on commit 20717c1

Please sign in to comment.