---
id: "P:cAlgo.API.RobotAttribute.TimeZone"
kind: "property"
type: "T:cAlgo.API.RobotAttribute"
url: "https://help.ctrader.com/ctrader-algo/references/Attributes/RobotAttribute/TimeZone/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# RobotAttribute.TimeZone

Member of [RobotAttribute](https://help.ctrader.com/ctrader-algo/references/Attributes/RobotAttribute/index.md).

## TimeZone

Sets the timezone for all the robot or indicator datetime references

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string TimeZone {get; set;}
```

Python:

```python
robotAttribute.TimeZone: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
public partial class NewsRobot : Robot
{
    protected override void OnStart()
    {
        Print("New York time: {0}", Server.Time);
    }
}
```

Python:

```python
def on_start(self):
    api.Print(f"New York time: {api.Server.Time}")
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "Eastern Standard Time"
}
```

