Omniscio

OmniscioGuidesTime format and time zone

Claude Code: 24-hour time format and time zone

Two settings decide how Claude Code writes a clock. They are easy to confuse because one looks like it covers the other: timeFormat chooses the shape of the time, and timeZone chooses the zone it is written in.

Last checked against Anthropic's documentation on November 26, 2026. By the Omniscio team. Updated .

What the two settings change

These keys change the clock Claude Code writes in its interface. Anthropic's example is the done 6:05 PM at the end of each turn duration message; the same format applies to the timestamps in the transcript viewer.

timeFormat chooses the clock's shape, and timeZone moves it without changing that shape.

The time formats

The values timeFormat accepts.
ValueWhat you see
"auto"The same as unset; each time keeps its built-in format, which follows your locale on the turn duration message
"12-hour"A 12-hour clock
"24-hour"A 24-hour clock
"24-hour-utc"A 24-hour clock in UTC with Z after the minutes, such as 18:05Z
A strftime pattern such as "%H:%M"Each time written with the pattern

The default is "auto". To pick a preset without editing a file, run /config and set Time format.

How to set it

Both keys go in a settings file. Your user file is ~/.claude/settings.json, a project's is .claude/settings.json, and managed settings or a --settings file work too. This example shows each time as a 24-hour clock:

{
  "timeFormat": "24-hour"
}

A strftime pattern has to go in a settings file, because /config offers only the presets. This example shows a two-digit 24-hour clock:

{
  "timeFormat": "%H:%M"
}

Any value that contains a percent sign is treated as a pattern. Any other value outside the presets counts as "auto", so a typo can look like the setting did nothing.

In the transcript viewer the pattern is the whole timestamp, so add date directives when you want the date there, for example "%Y-%m-%d %H:%M".

Showing a different time zone

Set timeZone to an IANA time zone name, such as "UTC" or "Europe/Dublin". The times that timeFormat controls then show in that zone.

{
  "timeFormat": "24-hour",
  "timeZone": "Europe/Dublin"
}

/config has no row for this key, so it has to be set in a settings file. Its default is unset, which means your system time zone. When Claude Code does not recognize the name, it uses your system time zone.

The "24-hour-utc" format is the exception: it always shows UTC and ignores timeZone.

Common mistakes

  • Typing a strftime pattern into /config. It offers only the presets; add the pattern to a settings file.
  • Writing a pattern with no percent sign. Such a value counts as "auto", so nothing appears to change.
  • Expecting 24-hour-utc to follow timeZone. That format ignores the time zone key.
  • Using an abbreviation such as BST. The key takes an IANA name; an unrecognized value falls back to your system zone.
  • Expecting every clock on screen to change. These settings control the times Claude Code writes in its interface, such as the turn duration and the transcript viewer.
  • Setting timeZone alone and expecting a 24-hour clock. The zone moves the time; timeFormat chooses its shape.

How do I know it worked?

  • Finish a turn and read the duration line; its clock now follows the format and zone you set.
  • Press Ctrl+O to open the transcript viewer and check the timestamp on an assistant message.
  • Run /config and look at Time format; a preset you chose there is the same key in the file.

Where these answers come from

Common questions

How do I make Claude Code show a 24-hour clock?

Set timeFormat to 24-hour, or pick 24-hour in /config under Time format. It controls the clock in the end-of-turn duration message and the timestamps in the transcript viewer, and it requires Claude Code v2.1.257 or later.

Can I use a custom time format?

Yes. Put a strftime pattern such as %H:%M in timeFormat. Any value that contains a percent sign is treated as a pattern, and /config offers only the presets, so a pattern has to be set in a settings file.

How do I show times in UTC or another time zone?

Set timeZone to an IANA name such as UTC or Europe/Dublin. It changes the times that timeFormat controls. The 24-hour-utc time format ignores timeZone, because it always shows UTC. An unrecognized time zone name falls back to your system time zone.

Why did my custom time format not take effect?

A timeFormat value that contains no percent sign and is not one of the presets counts as auto, so it keeps the built-in format. A strftime pattern needs a percent sign, and it must be set in a settings file because /config lists only the presets.