You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TemporalAmountAdapter cannot decide with a value of 0 whether an IsoDuration is supposed to be a Period or Duration and falls back to a TemporalAmount.
This does of course makes no sense when assigning it to a Duration. The user would have to model things as TemporalAmount which is far from ideal.
Introduce a dedicated converter in parallel to the already existing
adapter, that is able to augment the returned type in case a zero based
`IsoDuration` has been received with the actual target type.
Closes#2324.
Introduce a dedicated converter in parallel to the already existing
adapter, that is able to augment the returned type in case a zero based
`IsoDuration` has been received with the actual target type.
Closes#2324.
The
TemporalAmountAdapter
cannot decide with a value of0
whether anIsoDuration
is supposed to be aPeriod
orDuration
and falls back to aTemporalAmount
.This does of course makes no sense when assigning it to a
Duration
. The user would have to model things asTemporalAmount
which is far from ideal.cc @svenjanko
The text was updated successfully, but these errors were encountered: