Ticket #5585: mythtv_mythlcdserver_use_dateformat.patch

File mythtv_mythlcdserver_use_dateformat.patch, 1.2 KB (added by tpr@…, 13 years ago)

Respect date formatting

  • lcdprocclient.cpp

     
    535535    QString old_keystring = lcd_keystring;
    536536
    537537    timeformat = gContext->GetSetting("TimeFormat", "h:mm AP");
     538    dateformat = gContext->GetSetting("DateFormat", "dd.MM.yyyy");
    538539
    539540    // Get LCD settings
    540541    lcd_showmusic=(gContext->GetSetting("LCDShowMusic", "1")=="1");
     
    18421843        if (lcd_showrecstatus && isRecording)
    18431844            outputCenteredText("Time", tr("RECORDING"), "topWidget", 1);
    18441845        else
    1845             outputCenteredText("Time", QDate::currentDate().toString(), "topWidget", 1);
     1846            outputCenteredText("Time", QDate::currentDate().toString(dateformat), "topWidget", 1);
    18461847
    18471848        dostdclock();
    18481849    }
  • lcdprocclient.h

     
    195195    QString scrollScreen;
    196196    unsigned int scrollPosition;
    197197    QString timeformat;
     198    QString dateformat;
    198199
    199200    QStringList scrollListItems;
    200201    QString scrollListScreen, scrollListWidget;