Skip to content

SetChronoTimeZone

imshooter edited this page Nov 26, 2026 · 1 revision

Change the time zone of the server.

native bool:SetChronoTimeZone(const zone[]);

Parameters

Parameter Description
const zone[] The zone, as "Europe/London", or the zone of the machine when empty.

Returns

  • true when it was changed.
  • false when there is no such zone.

Remarks

It takes the place of chrono.time_zone in config.json for every script, until the server restarts.

Example

public OnGameModeInit() {
    SetChronoTimeZone("America/New_York");

    return 1;
}

Related

Clone this wiki locally