mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed handling timers on the 29th, 30th or 31st of a month in case the next month has less than 31 days
This commit is contained in:
		
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							@@ -936,3 +936,5 @@ Video Disk Recorder Revision History
 | 
				
			|||||||
- Updated channel settings for 'N24' (thanks to Andreas Gebel).
 | 
					- Updated channel settings for 'N24' (thanks to Andreas Gebel).
 | 
				
			||||||
- Fixed handling hierarchical recordings menu in case of directories starting
 | 
					- Fixed handling hierarchical recordings menu in case of directories starting
 | 
				
			||||||
  with the same sequence of characters.
 | 
					  with the same sequence of characters.
 | 
				
			||||||
 | 
					- Fixed handling timers on the 29th, 30th or 31st of a month in case the next
 | 
				
			||||||
 | 
					  month has less than 31 days.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								config.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								config.c
									
									
									
									
									
								
							@@ -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: config.c 1.77 2002/01/19 16:06:42 kls Exp $
 | 
					 * $Id: config.c 1.78 2002/02/01 15:35:23 kls Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "config.h"
 | 
					#include "config.h"
 | 
				
			||||||
@@ -551,7 +551,7 @@ bool cTimer::Matches(time_t t)
 | 
				
			|||||||
  if (length < 0)
 | 
					  if (length < 0)
 | 
				
			||||||
     length += SECSINDAY;
 | 
					     length += SECSINDAY;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  int DaysToCheck = IsSingleEvent() ? 31 : 7;
 | 
					  int DaysToCheck = IsSingleEvent() ? 61 : 7; // 61 to handle months with 31/30/31
 | 
				
			||||||
  for (int i = -1; i <= DaysToCheck; i++) {
 | 
					  for (int i = -1; i <= DaysToCheck; i++) {
 | 
				
			||||||
      time_t t0 = IncDay(t, i);
 | 
					      time_t t0 = IncDay(t, i);
 | 
				
			||||||
      if (DayMatches(t0)) {
 | 
					      if (DayMatches(t0)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user