From b6c8b6fe98b69c64e818d386c57ac2f16043794b Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Wed, 20 Nov 2024 21:17:33 +0000 Subject: [PATCH] Uncomment printf. Allow 15-min timezones for leap-seconds as well --- generic/tclClock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclClock.c b/generic/tclClock.c index c956fd6298b..aa570cc705d 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -1956,7 +1956,7 @@ ConvertLocalToUTC( /* check DST-hole: if retrieved seconds is out of range */ if (ltzoc->rangesVal[0] > seconds || seconds >= ltzoc->rangesVal[1]) { dstHole: -#if 1 +#if 0 printf("given local-time is outside the time-zone (in DST-hole): " "%" TCL_LL_MODIFIER "d - offs %d => %" TCL_LL_MODIFIER "d <= %" TCL_LL_MODIFIER "d < %" TCL_LL_MODIFIER "d\n", fields->localSeconds, fields->tzOffset, @@ -3901,7 +3901,7 @@ ClockValidDate( errMsg = "invalid time (minutes)"; errCode = "minutes"; goto error; - } else if ((yyMinutes != 29) && (yyMinutes != 59)) { + } else if ((yyMinutes != 14) && (yyMinutes != 29) && (yyMinutes != 44) && (yyMinutes != 59)) { leapDay = 0; } /* oldscan could return secondOfDay (parsedTime) -1 by invalid time (ex.: 25:00:00) */