Skip to content

Commit 0677389

Browse files
committed
amend to 372dabf: enforce relative conversion for date units only (all relative time units are similar and normally affecting relative seconds in UTC)
1 parent dcf4977 commit 0677389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generic/tclClock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4551,13 +4551,13 @@ ClockAddObjCmd(
45514551
yyRelSeconds += offs;
45524552
break;
45534553
}
4554-
if (unitIndex != CLC_ADD_SECONDS) {
4554+
if (unitIndex < CLC_ADD_HOURS) { /* date units only */
45554555
info->flags |= CLF_RELCONV;
45564556
}
45574557
}
45584558

45594559
/*
4560-
* Do relative times (if not yet already processed interim),
4560+
* Do relative units (if not yet already processed interim),
45614561
* thereby ignore relative time (it can be processed within commit).
45624562
*/
45634563

0 commit comments

Comments
 (0)