summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:23:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:23:22 +0200
commit5aacc51c14491fa029f6408f45685bf505c606b5 (patch)
tree488ca1c1cadf5bf7123bfd359c3812af2946eec9 /epg.c
parentbcbb3137e7ae46a124c1d3af03d7be1b23f5846b (diff)
downloadvdr-5aacc51c14491fa029f6408f45685bf505c606b5.tar.gz
vdr-5aacc51c14491fa029f6408f45685bf505c606b5.tar.bz2
Single shot timers and events now show the day of week
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/epg.c b/epg.c
index 28d8c1d2..2768db2e 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.18 2004/03/13 15:01:05 kls Exp $
+ * $Id: epg.c 1.19 2004/05/22 12:37:07 kls Exp $
*/
#include "epg.h"
@@ -115,9 +115,12 @@ bool cEvent::IsRunning(bool OrAboutToStart) const
const char *cEvent::GetDateString(void) const
{
- static char buf[25];
+ static char buf[32];
struct tm tm_r;
- strftime(buf, sizeof(buf), "%d.%m.%Y", localtime_r(&startTime, &tm_r));
+ tm *tm = localtime_r(&startTime, &tm_r);
+ char *p = stpcpy(buf, WeekDayName(tm->tm_wday));
+ *p++ = ' ';
+ strftime(p, sizeof(buf) - (p - buf), "%d.%m.%Y", tm);
return buf;
}