﻿# CLOCK_BEFORE_RECORDED_TIME — the requested time is earlier than a time the store has recorded

`POST /api/platform/clock` with a `time` not later than now sets the clock there. The store keeps history in time order: setting the clock before a time i…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.9.0">0.9.0</a></em>

# errors.CLOCK_BEFORE_RECORDED_TIME

## NAME

CLOCK_BEFORE_RECORDED_TIME — a request to set the platform clock named a time earlier than the latest time the store has recorded.

## SYNOPSIS

HTTP: `409` `Conflict`. Retryable: `no` (as sent).

## DESCRIPTION

`POST /api/platform/clock` with a `time` not later than now sets the clock there. The store keeps history in time order: setting the clock before a time it has already recorded would stamp new writes earlier than existing ones. The request is refused and the clock stays where it was.

The problem's detail names the latest recorded time, and the problem's `properties.latestRecordedTime` carries it as an RFC 3339 timestamp. Ask for that time or a later one, or start over with a fresh store to go further back. A `time` later than now is a move forward and is never refused with this code.

## SEE ALSO

- errors
- errors.CLOCK_CONTROL_DISABLED

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors CLOCK_CONTROL_DISABLED`](/help/errors/clock_control_disabled/) — `POST /api/platform/clock` changes the clock every tenant of the instance shares. It is a test feature, and a node accepts it only when it was started with `CYODA_CLOCK_CONTROL_ENABLED=true`. Without that setting the node runs on real time and refuses every change with this code, after it has checked that the caller is a platform operator.

## Raw formats

- [`/help/errors/clock_before_recorded_time.json`](/help/errors/clock_before_recorded_time.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/clock_before_recorded_time.md`](/help/errors/clock_before_recorded_time.md) — body only