Skip to main content
CHANDRA KANT BAGHEL (Algoworks) ha fatto una domanda in #Apex
Hi All

I am facing a weird situation where apex is interpreting same data differently when the user locale is different.

For instance:

When Locale is English(South Africa) apex is parsing <Customfield__c: "12.62"> as 1262.00 

Where as When Locale is English(United States) apex is parsing <Customfield__c: "12.62"> as 12.62

Note: The object is passed from aura component to apex method with the field value as mentioned above and then apex receive it as simply (CustomObject__c obj)

Does anybody have any clue , why possibly is this happening.

It would be great if you can add some supportive documentation also.
2 risposte