vdr-1.3.23: Show localized date in timer edit menu

Message ID d1m242$5bh$1@fritz38552.news.dfncis.de
State New
Headers

Commit Message

Wolfgang Fritz March 21, 2005, 8:54 a.m. UTC
  Hello,

the attached patch displays a localized date in the timer edit menu
instead of the yyyy-mm-dd format. Tested with german locale under SuSE 9.0.

Wolfgang
  

Patch

Index: menuitems.c
===================================================================
--- menuitems.c	(Revision 253)
+++ menuitems.c	(Arbeitskopie)
@@ -578,7 +578,7 @@ 
   else if (*value) {
      struct tm tm_r;
      localtime_r(value, &tm_r);
-     strftime(buf, DATEBUFFERSIZE, "%Y-%m-%d ", &tm_r);
+     strftime(buf, DATEBUFFERSIZE, "%x ", &tm_r);
      strcat(buf, WeekDayName(tm_r.tm_wday));
      }
   else