Ticket #9944: date.diff

File date.diff, 1.1 KB (added by Doug Haber <doug@…>, 9 years ago)
  • mythtv/programs/mythfrontend/playbackbox.cpp

    diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
    index 9de9cbd..57423f7 100644
    a b void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item) 
    12861286        item->SetTextFromMap(infoMap);
    12871287
    12881288        QString tempSubTitle  = extract_subtitle(**it, groupname);
     1289        QString tempShortDate = MythDateTimeToString((*it)->GetRecordingStartTime(),
     1290                                                     kDateShort);
     1291        QString tempLongDate  = MythDateTimeToString((*it)->GetRecordingStartTime(),
     1292                                                     kDateFull | kSimplify);
    12891293
    12901294        if (groupname == (*it)->GetTitle().toLower())
    12911295            item->SetText(tempSubTitle,       "titlesubtitle");
    12921296
     1297        item->SetText(tempLongDate,       "longdate");
     1298        item->SetText(tempShortDate,      "shortdate");
     1299
    12931300        item->DisplayState(state, "status");
    12941301
    12951302        item->DisplayState(QString::number((*it)->GetStars(10)), "ratingstate");