[PATCH] Small fix for short date format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

The short date format in VDR currently is "mm.yy", while such a date
should actually have two periods, i.e. "mm.yy.", for example "26.08.".
(That is because both the day and month are ordinal numbers.)

The attached patch adds the missing period to DayDateTime() in tools.c.
Applies to both 1.4.7 and 1.5.9.

Regards,
-LN

diff -ru clean/vdr-1.5.8/tools.c vdr-1.5.8/tools.c
--- clean/vdr-1.5.8/tools.c	2007-08-05 15:18:15.000000000 +0300
+++ vdr-1.5.8/tools.c	2007-08-25 23:56:02.000000000 +0300
@@ -896,7 +896,7 @@
      time(&t);
   struct tm tm_r;
   tm *tm = localtime_r(&t, &tm_r);
-  snprintf(buffer, sizeof(buffer), "%s %02d.%02d %02d:%02d", *WeekDayName(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min);
+  snprintf(buffer, sizeof(buffer), "%s %02d.%02d. %02d:%02d", *WeekDayName(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min);
   return buffer;
 }
 
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux