mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Year is now displayed with only 2 digits
This commit is contained in:
		
							
								
								
									
										4
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -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
									
								
								menu.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								menu.c
									
									
									
									
									
								
							| @@ -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(); | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user