Commit 5a1b10e
committed
Remove the incorrect default parameter in LocalTime.atDate (#502)
From 0.4.0 (dc5c965), we have
`LocalTime.atDate` with the default value `0` for
`dayOfMonth: Int`. This doesn't make any sense, though, as `0` is
not a valid day, so `LocalTime(23, 59).atDate(2025, 3)` just fails.
This commit removes the default value.
Since it was impossible to call `atDate` without specifying the
day and not fail, no valid code should stop compiling.1 parent 98c3e53 commit 5a1b10e
File tree
3 files changed
+4
-6
lines changed- core
- api
- common/src
3 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | 442 | | |
444 | 443 | | |
445 | 444 | | |
446 | | - | |
447 | 445 | | |
448 | 446 | | |
449 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
0 commit comments