1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Year is now displayed with only 2 digits

This commit is contained in:
Klaus Schmidinger 2000-07-16 13:46:05 +02:00
parent 3499416f07
commit 685e0f6951
3 changed files with 9 additions and 5 deletions

View File

@ -73,4 +73,8 @@ Video Disk Recorder Revision History
- When more than one timer matches at the same time, the first one in the list - When more than one timer matches at the same time, the first one in the list
with the highest 'Priority' is selected. with the highest 'Priority' is selected.
- The MANUAL section on "Programming the Timer" has been filled in. - The MANUAL section on "Programming the Timer" has been filled in.
- The year in the "Recordings" menu as well as in the progress display during
replay has been reduced to 2 digits to allow more space for the recording's
title. In the internal file structure the year is still stored with 4 digits,
so there will be no problem at the next turn of the century ;-)

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.17 2000/07/16 10:55:45 kls Exp $ * $Id: menu.c 1.18 2000/07/16 13:42:29 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -932,7 +932,7 @@ public:
}; };
cMenuRecordings::cMenuRecordings(void) cMenuRecordings::cMenuRecordings(void)
:cOsdMenu("Recordings", 11, 6) :cOsdMenu("Recordings", 9, 6)
{ {
if (Recordings.Load()) { if (Recordings.Load()) {
cRecording *recording = Recordings.First(); cRecording *recording = Recordings.First();

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: recording.c 1.9 2000/07/15 16:55:08 kls Exp $ * $Id: recording.c 1.10 2000/07/16 13:41:45 kls Exp $
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
@ -166,10 +166,10 @@ const char *cRecording::Title(char Delimiter)
delete titleBuffer; delete titleBuffer;
titleBuffer = NULL; titleBuffer = NULL;
struct tm *t = localtime(&start); struct tm *t = localtime(&start);
asprintf(&titleBuffer, "%02d.%02d.%04d%c%02d:%02d%c%s", asprintf(&titleBuffer, "%02d.%02d.%02d%c%02d:%02d%c%s",
t->tm_mday, t->tm_mday,
t->tm_mon + 1, t->tm_mon + 1,
t->tm_year + 1900, t->tm_year % 100,
Delimiter, Delimiter,
t->tm_hour, t->tm_hour,
t->tm_min, t->tm_min,