Actions
Feature #85
openPatch: Change date generation
Start date:
02/04/2009
Due date:
% Done:
0%
Estimated time:
Description
Hi,
at least here in Germany the data displayed was wrong. The month was 0 in january and 1 in february.
Feel free to apply.
The attached fixes this by using vdr/tools - function:
diff --git a/yaepghd.c b/yaepghd.cindex 868f999..c4f862c 100644
--- a/yaepghd.c
+++ b/yaepghd.c@ -1460,12 +1471,8
@ cYaepgGridDate::cYaepgGridDate(time_t _t)
void
cYaepgGridDate::UpdateTime(time_t _t)
{
- struct tm locTime; localtime_r(&t, &locTime);
+ sprintf(dateStr,"%s", *DateString(_t));
t = _t;
- snprintf(dateStr, sizeof(dateStr), "%s %d/%d",
- *WeekDayName((locTime.tm_wday + 6) % 6), locTime.tm_mon, locTime.tm
_mday);
Generate(); }
No data to display
Actions