diff --git a/mythtv/programs/mythbackend/services/content.cpp b/mythtv/programs/mythbackend/services/content.cpp
index 97758be..e61c58d 100644
|
a
|
b
|
DTC::ArtworkInfoList* Content::GetRecordingArtworkList(
|
| 269 | 269 | if (chanid <= 0 || !recstarttsRaw.isValid()) |
| 270 | 270 | throw( QString("Channel ID or StartTime appears invalid.")); |
| 271 | 271 | |
| 272 | | ProgramInfo pInfo(chanid, recstarttsRaw.toUTC()); |
| | 272 | ProgramInfo pInfo(chanid, MythDate::as_utc(recstarttsRaw)); |
| 273 | 273 | |
| 274 | 274 | return GetProgramArtworkList(pInfo.GetInetRef(), pInfo.GetSeason()); |
| 275 | 275 | } |
| … |
… |
QFileInfo Content::GetPreviewImage( int nChanId,
|
| 442 | 442 | throw sMsg; |
| 443 | 443 | } |
| 444 | 444 | |
| 445 | | QDateTime recstartts = recstarttsRaw.toUTC(); |
| | 445 | QDateTime recstartts = MythDate::as_utc(recstarttsRaw); |
| 446 | 446 | |
| 447 | 447 | // ---------------------------------------------------------------------- |
| 448 | 448 | // Read Recording From Database |
| … |
… |
QFileInfo Content::GetRecording( int nChanId,
|
| 591 | 591 | // Read Recording From Database |
| 592 | 592 | // ------------------------------------------------------------------ |
| 593 | 593 | |
| 594 | | QDateTime recstartts = recstarttsRaw.toUTC(); |
| | 594 | QDateTime recstartts = MythDate::as_utc(recstarttsRaw); |
| 595 | 595 | |
| 596 | 596 | ProgramInfo pginfo((uint)nChanId, recstartts); |
| 597 | 597 | |
| … |
… |
DTC::LiveStreamInfo *Content::AddRecordingLiveStream(
|
| 946 | 946 | // Read Recording From Database |
| 947 | 947 | // ------------------------------------------------------------------ |
| 948 | 948 | |
| 949 | | QDateTime recstartts = recstarttsRaw.toUTC(); |
| | 949 | QDateTime recstartts = MythDate::as_utc(recstarttsRaw); |
| 950 | 950 | |
| 951 | 951 | ProgramInfo pginfo((uint)nChanId, recstartts); |
| 952 | 952 | |
diff --git a/mythtv/programs/mythbackend/services/dvr.cpp b/mythtv/programs/mythbackend/services/dvr.cpp
index 9582bd4..9c45e40 100644
|
a
|
b
|
DTC::Program* Dvr::GetRecorded(int chanid, const QDateTime &recstarttsRaw)
|
| 166 | 166 | if (chanid <= 0 || !recstarttsRaw.isValid()) |
| 167 | 167 | throw QString("Channel ID or StartTime appears invalid."); |
| 168 | 168 | |
| 169 | | ProgramInfo pi(chanid, recstarttsRaw.toUTC()); |
| | 169 | ProgramInfo pi(chanid, MythDate::as_utc(recstarttsRaw)); |
| 170 | 170 | |
| 171 | 171 | DTC::Program *pProgram = new DTC::Program(); |
| 172 | 172 | FillProgramInfo( pProgram, &pi, true ); |
| … |
… |
bool Dvr::RemoveRecorded(int chanid, const QDateTime &recstarttsRaw)
|
| 183 | 183 | if (chanid <= 0 || !recstarttsRaw.isValid()) |
| 184 | 184 | throw QString("Channel ID or StartTime appears invalid."); |
| 185 | 185 | |
| 186 | | ProgramInfo pi(chanid, recstarttsRaw.toUTC()); |
| | 186 | ProgramInfo pi(chanid, MythDate::as_utc(recstarttsRaw)); |
| 187 | 187 | |
| 188 | 188 | if (pi.GetChanID() && pi.HasPathname()) |
| 189 | 189 | { |
| … |
… |
int Dvr::AddRecordSchedule ( int chanid,
|
| 454 | 454 | bool bAutoUserJob4, |
| 455 | 455 | int nTranscoder) |
| 456 | 456 | { |
| 457 | | QDateTime recstartts = recstarttsRaw.toUTC(); |
| | 457 | QDateTime recstartts = MythDate::as_utc(recstarttsRaw); |
| 458 | 458 | RecordingInfo info(chanid, recstartts, false); |
| 459 | 459 | RecordingRule *rule = info.GetRecordingRule(); |
| 460 | 460 | // ^ rule is owned by info and deleted when it leaves scope |
diff --git a/mythtv/programs/mythbackend/services/guide.cpp b/mythtv/programs/mythbackend/services/guide.cpp
index 0f2b6fa..8e68cd3 100644
|
a
|
b
|
DTC::ProgramGuide *Guide::GetProgramGuide( const QDateTime &rawStartTime ,
|
| 53 | 53 | if (!rawEndTime.isValid()) |
| 54 | 54 | throw( "EndTime is invalid" ); |
| 55 | 55 | |
| 56 | | QDateTime dtStartTime = rawStartTime.toUTC(); |
| 57 | | QDateTime dtEndTime = rawEndTime.toUTC(); |
| | 56 | QDateTime dtStartTime = MythDate::as_utc(rawStartTime); |
| | 57 | QDateTime dtEndTime = MythDate::as_utc(rawEndTime); |
| 58 | 58 | |
| 59 | 59 | if (dtEndTime < dtStartTime) |
| 60 | 60 | throw( "EndTime is before StartTime"); |
| … |
… |
DTC::Program* Guide::GetProgramDetails( int nChanId,
|
| 174 | 174 | if (!rawStartTime.isValid()) |
| 175 | 175 | throw( "StartTime is invalid" ); |
| 176 | 176 | |
| 177 | | QDateTime dtStartTime = rawStartTime.toUTC(); |
| | 177 | QDateTime dtStartTime = MythDate::as_utc(rawStartTime); |
| 178 | 178 | |
| 179 | 179 | // ---------------------------------------------------------------------- |
| 180 | 180 | // -=>TODO: Add support for getting Recorded Program Info |