Version
What package version of the SDK are you using.
4.14.2
Describe the bug
Very strange localization issues appeared in our production application, like formatting dates in Chinese, Portuguese etc. Incidentally, soon after rolling out our Teams app which is part of our backend monolith. Turns out the SDK sets the default locale since #1074 with Locale.setDefault() which is JVM global.
To Reproduce
Steps to reproduce the behavior:
- Send a message to a bot with locale other than
en_US
- Default locale changes, verify with
Locale.getDefault()
Expected behavior
Locale.setDefault() is not run by the SDK as it's JVM-wide.
Screenshots
If applicable, add screenshots to help explain your problem

.
Additional context
Add any other context about the problem here.
Happens in BotAdapter.java here.
Version
What package version of the SDK are you using.
4.14.2
Describe the bug
Very strange localization issues appeared in our production application, like formatting dates in Chinese, Portuguese etc. Incidentally, soon after rolling out our Teams app which is part of our backend monolith. Turns out the SDK sets the default locale since #1074 with
Locale.setDefault()which is JVM global.To Reproduce
Steps to reproduce the behavior:
en_USLocale.getDefault()Expected behavior
Locale.setDefault()is not run by the SDK as it's JVM-wide.Screenshots
If applicable, add screenshots to help explain your problem

.
Additional context
Add any other context about the problem here.
Happens in
BotAdapter.javahere.