diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 13:46:05 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 13:46:05 +0200 |
commit | 685e0f6951fadcc7723374ca2e0769771f3ef3bb (patch) | |
tree | b1570612eb9d1ad474663a8b7264fb92c0309fcd | |
parent | 3499416f0785923f40afe0478598c157c9fa00e2 (diff) | |
download | vdr-685e0f6951fadcc7723374ca2e0769771f3ef3bb.tar.gz vdr-685e0f6951fadcc7723374ca2e0769771f3ef3bb.tar.bz2 |
Year is now displayed with only 2 digits
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | menu.c | 4 | ||||
-rw-r--r-- | recording.c | 6 |
3 files changed, 9 insertions, 5 deletions
@@ -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 with the highest 'Priority' is selected. - 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,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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" @@ -932,7 +932,7 @@ public: }; cMenuRecordings::cMenuRecordings(void) -:cOsdMenu("Recordings", 11, 6) +:cOsdMenu("Recordings", 9, 6) { if (Recordings.Load()) { cRecording *recording = Recordings.First(); diff --git a/recording.c b/recording.c index 77c46aa5..714c7f13 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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 @@ -166,10 +166,10 @@ const char *cRecording::Title(char Delimiter) delete titleBuffer; titleBuffer = NULL; 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_mon + 1, - t->tm_year + 1900, + t->tm_year % 100, Delimiter, t->tm_hour, t->tm_min, |