Skip to content

Commit

Permalink
Uncomment printf. Allow 15-min timezones for leap-seconds as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Nov 20, 2024
1 parent 265092d commit b6c8b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/tclClock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) */
Expand Down

0 comments on commit b6c8b6f

Please sign in to comment.