setTimezone(timezone)
Sets the time zone for the LocaleUtils instance.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
timezone | string | The time zone to be set. | ✅ |
Usage example
In this example, the API sets the time zone to Asia/Calcutta
.
PCore.getLocaleUtils().setTimezone("Asia/Calcutta");
Previous topic setLocaleForRule(localeJson, localeRuleKey) Next topic APIs in the MashupApi class