Open caad1229 opened 3 years ago
Hey @caad1229,
Thanks so much for the issue report. This is an interesting one. Since you've already dug around in the internals a bit, any chance you feel like sending a PR for this? I'd be happy to get it merged if you get this fixed :)
Based on the fact that this is calling a super class, I'm wondering if this potentially an issue with other languages as well? Or do you feel this is only an issue with German?
Cheers! ~Lincoln
Hi, @lincolnthree would this issue be taken care of by yourself ! It is there for quite a while.
@ShareASmile As this only impacts very specific usage of the German translation, it is not very high priority. PRs welcome. Thanks!
Hi, Calling the
formatUnrounded
method will ignore the rounding when I use the German format.Resources_de.java
,DateTimeformat :: decorateUnrounded
callssuper.decorateUnrounded
(source)SimbleTimeFormat :: decorateUnrounded
method callsdecorate
. (source)SimbleTimeFormat :: decorateUnrounded
, but it's actually callingDateTimeformat :: decorate
.Therefore, rounding is effective and the expected value cannot be obtained. Below is a test snippet.
Best regards