fix(slides): correct date type in historical exchange rate example
Use `LocalDate` instead of `LocalDateTime` to align with Moneta/ECB-HIST expectations for date-based queries.
This commit is contained in:
parent
e8162f3f17
commit
50b6605285
1 changed files with 1 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ MonetaryAmount amountCHF = Money.of(10, "CHF");
|
||||||
|
|
||||||
ConversionQuery query = ConversionQueryBuilder.of()
|
ConversionQuery query = ConversionQueryBuilder.of()
|
||||||
.setTermCurrency("EUR")
|
.setTermCurrency("EUR")
|
||||||
.set(LocalDateTime.class, LocalDateTime.of(2026, 3, 13, 14, 3, 27))
|
.set(LocalDate.class, LocalDate.of(2026, 3, 13))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CurrencyConversion conversion = MonetaryConversions.getConversion(query);
|
CurrencyConversion conversion = MonetaryConversions.getConversion(query);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue