Permalink
Browse files

Return 'asof' time in UTC.

This was missed in the 0.25 conversion of the Services API to UTC.

This increments the DvrServices API version from 1.4 to 1.5
  • Loading branch information...
1 parent 7624433 commit 6c234ae2aca1e455dd1a005dc011a6d065b11690 @daniel-kristjansson daniel-kristjansson committed Jul 6, 2012
@@ -38,7 +38,7 @@
class SERVICE_PUBLIC DvrServices : public Service //, public QScriptable ???
{
Q_OBJECT
- Q_CLASSINFO( "version" , "1.4" );
+ Q_CLASSINFO( "version" , "1.5" );
Q_CLASSINFO( "RemoveRecordedItem_Method", "POST" )
Q_CLASSINFO( "AddRecordSchedule_Method", "POST" )
Q_CLASSINFO( "RemoveRecordSchedule_Method", "POST" )
@@ -359,7 +359,7 @@ DTC::ProgramList* Dvr::GetUpcomingList( int nStartIndex,
pPrograms->setStartIndex ( nStartIndex );
pPrograms->setCount ( nCount );
pPrograms->setTotalAvailable( recordingList.size() );
- pPrograms->setAsOf ( QDateTime::currentDateTime() );
+ pPrograms->setAsOf ( MythDate::current() );
pPrograms->setVersion ( MYTH_BINARY_VERSION );
pPrograms->setProtoVer ( MYTH_PROTO_VERSION );
@@ -413,7 +413,7 @@ DTC::ProgramList* Dvr::GetConflictList( int nStartIndex,
pPrograms->setStartIndex ( nStartIndex );
pPrograms->setCount ( nCount );
pPrograms->setTotalAvailable( recordingList.size() );
- pPrograms->setAsOf ( QDateTime::currentDateTime() );
+ pPrograms->setAsOf ( MythDate::current() );
pPrograms->setVersion ( MYTH_BINARY_VERSION );
pPrograms->setProtoVer ( MYTH_PROTO_VERSION );
@@ -577,7 +577,7 @@ DTC::RecRuleList* Dvr::GetRecordScheduleList( int nStartIndex,
pRecRules->setStartIndex ( nStartIndex );
pRecRules->setCount ( nCount );
pRecRules->setTotalAvailable( recList.size() );
- pRecRules->setAsOf ( QDateTime::currentDateTime() );
+ pRecRules->setAsOf ( MythDate::current() );
pRecRules->setVersion ( MYTH_BINARY_VERSION );
pRecRules->setProtoVer ( MYTH_PROTO_VERSION );

0 comments on commit 6c234ae

Please sign in to comment.