File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/org/javamoney/moneta/convert/internal Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1818import java .io .InputStream ;
1919import java .math .MathContext ;
2020import java .net .MalformedURLException ;
21+ import java .time .Duration ;
2122import java .time .LocalDate ;
2223import java .time .LocalDateTime ;
24+ import java .time .Period ;
25+ import java .time .temporal .TemporalUnit ;
2326import java .util .Map ;
2427import java .util .Objects ;
2528import java .util .concurrent .ConcurrentHashMap ;
29+ import java .util .concurrent .TimeUnit ;
2630import java .util .logging .Level ;
2731
2832import javax .money .CurrencyUnit ;
@@ -104,7 +108,7 @@ public ExchangeRate getExchangeRate(ConversionQuery query) {
104108 if (dateTime != null ) {
105109 date = dateTime .toLocalDate ();
106110 } else {
107- date = LocalDate .now ();
111+ date = LocalDate .now (). minus ( Period . ofDays ( 1 )) ;
108112 }
109113 }
110114 ExchangeRateBuilder builder = getBuilder (query , date );
You can’t perform that action at this time.
0 commit comments