The localization service of the Aura components takes care of providing localization support to the client-side JavaScript input and output. In this section, we will cover a few of the functions provided by the localization service. For a comprehensive list of the functions supported, refer to the official documentation at https://<myDomain>/auradocs/reference.app#reference?topic=api:AuraLocalizationService
. Here, myDomain
is the custom domain name of your organization.
To find the local time zone of the running user, copy the following snippet of code into your component JavaScript:
var OrgtimeZone = $A.get("$Locale.timezone");