# Enable/Disable Auto Time Zone

### API Functions

#### Enable/Disable Auto Timezone

{% code overflow="wrap" %}

```java
void enableAutoTimezone(boolean enable);
```

{% endcode %}

Toggle the auto timezone feature on or off based on the 'enable' boolean value.

| Parameters |                                                                                                              |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| enable     | for the auto timezone setting, a boolean value is used: true enables auto timezone, while false disables it. |

#### Check Auto Timezone Status

{% code overflow="wrap" %}

```java
boolean isEnableAutoTimezone();
```

{% endcode %}

Returns the current status (enabled/disabled) of the auto timezone feature.

| Returns |                                                                                               |
| ------- | --------------------------------------------------------------------------------------------- |
| boolean | <p>a boolean representation of the result. </p><p>true if enable,</p><p>false if disable.</p> |

#### Enable/Disable Auto Timezone in GUI

{% code overflow="wrap" %}

```java
void enableAutoTimezoneGUI(boolean enable);
```

{% endcode %}

Enable or disable the display of the auto timezone feature in the GUI based on the 'enable' boolean value.

| Parameters |                                                                                                                      |
| ---------- | -------------------------------------------------------------------------------------------------------------------- |
| enable     | for the auto timezone GUI setting, a boolean value is used: true enables auto timezone GUI, while false disables it. |

#### Check Auto Timezone GUI Status

{% code overflow="wrap" %}

```java
boolean isEnableAutoTimezoneGUI();
```

{% endcode %}

* Retrieves the status (enabled/disabled) of the auto timezone feature in the GUI.

| Returns |                                                                                               |
| ------- | --------------------------------------------------------------------------------------------- |
| boolean | <p>a boolean representation of the result. </p><p>true if enable,</p><p>false if disable.</p> |

**Resource Download**

* Refer to the cloudpos apidemo - [demo](https://github.com/SmartPOSSamples/APIDemoForAar.git).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/enable-disable-auto-time-zone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
