---
title: "Set the time"
method: POST
path: "/time"
tags: ["Time"]
---

# Set the time

`POST /time`

Set the time and associated config options. If not setting the time the `/config` endpoint can be used.

## Response `200`

OK

- object
  - `sntp_enabled` boolean — Set to `true` to enable receiving time updates via NTP, `false` will disable NTP updates.
  - `time_zone` string — The time zone to use on the OpenEVSE. This has the format `<location name>|<POSIX timezone>`. The `location name` is not used by the EVSE and is largely to for the UI to provide a human readable version of the timezone and differentiate between locations that use the same time zone.
  - `time` string, date-time — If `sntp_enabled` is false this is the time to set. Must be in UTC.

## Other responses

- `400` — Example response

## Changes

- **2023-03-23** `31a621c17ba5` — 1 info
  - endpoint added
- **2021-09-09** `8e74ed2c45a0` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openevse/apis/openevse-wifi-api/changes/time/post.md)

---

[API](https://skmtc.dev/openevse/apis/openevse-wifi-api.md) · [All operations](https://skmtc.dev/openevse/apis/openevse-wifi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openevse/openevse-wifi-api/revisions/0b557db566f3/schema)
