Skip to content

Commit

Permalink
Make XML plist serializer dates work with Apple plist parser.
Browse files Browse the repository at this point in the history
Apple is apparently picky about the <date> explicitly stating that it is Zulu time
and having the Z at the end.  Apparently in most versions of Qt, Qt::ISODate doesn't
include it, and it may be added in 4.8... the only way to avoid the versioning
mess is to just explicitly specify the date format in the serializer.
  • Loading branch information
Robert McNamara committed Mar 14, 2012
1 parent c25fb44 commit 86d4de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp
Expand Up @@ -92,7 +92,7 @@ void XmlPListSerializer::RenderValue(const QString &sName,
if (needKey)
m_pXmlWriter->writeTextElement("key", sName);
m_pXmlWriter->writeTextElement("date", vValue.toDateTime()
.toUTC().toString(Qt::ISODate));
.toUTC().toString("yyyy-MM-ddThh:mm:ssZ"));
break;
}

Expand Down

0 comments on commit 86d4de8

Please sign in to comment.