Ticket #1187: mythtv.httpstatus.diff

File mythtv.httpstatus.diff, 1.0 KB (added by Robert Tsai <rtsai1111>, 18 years ago)
  • programs/mythbackend/httpstatus.cpp

     
    465465
    466466                    // Output HTML
    467467
    468                 os << "      <a href=\"#\">"
    469                    << recStartTs.addSecs(-nPreRollSecs).toString("ddd") << " "
    470                    << recStartTs.addSecs(-nPreRollSecs).toString(shortdateformat) << " "
     468                os << "      <a href=\"#\">";
     469                if (shortdateformat.find("ddd") == -1) {
     470                    // If day-of-week not already present somewhere, prepend it.
     471                    os << recStartTs.addSecs(-nPreRollSecs).toString("ddd")
     472                        << " ";
     473                }
     474                os << recStartTs.addSecs(-nPreRollSecs).toString(shortdateformat) << " "
    471475                   << recStartTs.addSecs(-nPreRollSecs).toString(timeformat) << " - ";
    472476
    473477                if (nEncoderId > 0)