Skip to content

Commit

Permalink
Return 'asof' time in UTC.
Browse files Browse the repository at this point in the history
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
daniel-kristjansson committed Jul 6, 2012
1 parent 7624433 commit 6c234ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/services/dvrServices.h
Expand Up @@ -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" )
Expand Down
6 changes: 3 additions & 3 deletions mythtv/programs/mythbackend/services/dvr.cpp
Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit 6c234ae

Please sign in to comment.