This commit also fixes a bug introduced in commit e99b43b91e, where java.time.Duration strings were converted to milliseconds and then converted again using the configured TimeUnit. See gh-27309
e99b43b91e