camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

Twitter native test : Locale and Timezone

Open zbendhiba opened this issue 4 years ago • 5 comments

I've been testing the twitter extension in native mode. And as I have a Locale fr, I've got errors parsing the responses from Twitter.com. The Twitter Java API expect to have the Locale.US installed and expect also Timezone UTC. We need to address the issue or at least document it.

zbendhiba avatar May 07 '21 14:05 zbendhiba

related to camel-quarkus-1861 and quarkus-5244

zbendhiba avatar May 07 '21 14:05 zbendhiba

Hi @zbendhiba ,

About Locale, Hi @zbendhiba ,

Just FYI, if it's only one no-default locale needed in native mode, we can specify it in application.properties like

quarkus.native.user-country=US
quarkus.native.user-language=en

Please take a look at https://github.com/apache/camel-quarkus/issues/2550#issuecomment-832204615 to get more details.

About the timezone, please take a look at my way to fix https://github.com/apache/camel-quarkus/issues/2542

Best Regards Freeman

ffang avatar May 09 '21 18:05 ffang

thanks @ffang

The quarkus.native.user-country, and quarkus.native.user-language work fine for me. From a user point of view, I hope, we can define more than one locale in near future.

For the timeZone, we don't use docker for twitter API. There is fix here. I wanted to ask you to test Twitter integration tests to check if there is problem with TimeZone, but it requires developer credentials.

zbendhiba avatar May 25 '21 14:05 zbendhiba

If someone could document this one and add the country/Language parameters to make this native build work for everyone.

zbendhiba avatar Apr 12 '22 08:04 zbendhiba

based on (transitively) linked issues, it seems that Locale support can be now managed at GraalVM level https://github.com/oracle/graal/issues/2908

apupier avatar Oct 07 '25 15:10 apupier