Conversion of Duration and Period uses ISO-8601, but other temporal accessors are converted using the current locale #21521
Labels
for: external-project
For an external project and not something we can fix
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Raised by @wimdeblauwe on Gitter, if you use
LocalTime
in a@ConfigurationProperties
class it is converted using the system locale, whereas conversion toDuration
andPeriod
is always done using ISO-8601. We document the behaviour forDuration
andPeriod
. This created an expectation thatLocalTime
and the like would be treated in the same way. The inconsistency of them being treated differently was then unexpected.The text was updated successfully, but these errors were encountered: