Project

General

Profile

Actions

Feature #85

open

Patch: Change date generation

Added by CR7 over 15 years ago.

Status:
New
Priority:
Normal
Assignee:
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;

+ sprintf(dateStr,"%s", *DateString(_t));
t = _t;
localtime_r(&t, &locTime);
- 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

Also available in: Atom PDF