diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-01 15:37:35 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-01 15:37:35 +0100 |
commit | e327c3862d2585e336fdd2b434a8e2c46dfb5c9e (patch) | |
tree | 716b55dfc04e7fb6d900baf85ca39026623d5894 /config.c | |
parent | 103124c82c8d1ae23fc46cf1c18f050b4721dbcb (diff) | |
download | vdr-e327c3862d2585e336fdd2b434a8e2c46dfb5c9e.tar.gz vdr-e327c3862d2585e336fdd2b434a8e2c46dfb5c9e.tar.bz2 |
Fixed handling timers on the 29th, 30th or 31st of a month in case the next month has less than 31 days
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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" @@ -551,7 +551,7 @@ bool cTimer::Matches(time_t t) if (length < 0) 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++) { time_t t0 = IncDay(t, i); if (DayMatches(t0)) { |