Skip to content

Commit

Permalink
fix: be case-insensitive on "now" datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
klausbrunner committed Sep 9, 2023
1 parent 74f109a commit 60d9680
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class DateTimeConverter implements CommandLine.ITypeConverter<TemporalAcce
}

private TemporalAccessor lenientlyParseDateTime(String arg, Clock clock) {
if (arg.equals("now")) {
if (arg.equalsIgnoreCase("now")) {
return ZonedDateTime.now(clock);
}
try {
Expand Down

0 comments on commit 60d9680

Please sign in to comment.