ocpsoft/prettytime

Not working setLocale method

BondarenkoArtur opened this issue · 1 comments

I'm needed to change Locale in a runtime, so I'm trying to change locale for instance of pretty time, but it seems that language is not updated. As I can see, locale is changed but units.values is not. Version prettytime:4.0.2.Final

val prettyTime = PrettyTime()
prettyTime.locale = Locale.FRANCE
prettyTime.format(DateTime().toDate())

I've tried Locale.FRENCH also...

image

If I'm creating instance with locale, it works well

image

I wasn't really expecting that this one will be fixed. But thanks ;)
When approximately you think to have new release build?