[mythtv-users] iMON LCD

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Fri Feb 27 14:40:22 UTC 2009


At 5:13 PM -0500 2/26/09, A JM wrote:
>I'm looking to change the time format on my LCD it currently shows 
>time in Military time, where can the format be changed?

The time of day can be changed in the frontend settings. In order to 
change the recording status message, you have to modify the source, 
however. Here's what I did in 0.21-fixes:


--- programs/mythlcdserver/lcdprocclient.cpp    (revision 19873)
+++ programs/mythlcdserver/lcdprocclient.cpp    (working copy)
@@ -1934,8 +1934,10 @@
          list = formatScrollerText(status);
          assignScrollingList(list, "RecStatus", "textWidget2", 2);

-        status = tuner->startTime.toString("hh:mm") + " to " +
-                tuner->endTime.toString("hh:mm");
+// DW        status = tuner->startTime.toString("hh:mm") + " to " +
+//                tuner->endTime.toString("hh:mm");
+        status = tuner->startTime.toString("h:mmap") + "-" +
+                tuner->endTime.toString("h:mmap");
          outputCenteredText("RecStatus", status, "textWidget3", 3);

          int length = tuner->startTime.secsTo(tuner->endTime);
@@ -1958,8 +1960,10 @@
          if (tuner->subtitle != "")
              status += "|(" + tuner->subtitle + ")";

-        status += "|" + tuner->startTime.toString("hh:mm") + " to " +
-                tuner->endTime.toString("hh:mm");
+// DW        status += "|" + tuner->startTime.toString("hh:mm") + " to " +
+//                tuner->endTime.toString("hh:mm");
+        status += "|" + tuner->startTime.toString("h:mmap") + "-" +
+                tuner->endTime.toString("h:mmap");

          list = formatScrollerText(status);
          assignScrollingList(list, "RecStatus", "textWidget1", 1);

-- 
Dan Wilga                                                        "Ook."


More information about the mythtv-users mailing list