← ClaudeAtlas

clocklisted

Set up, configure, verify or troubleshoot the clock hook that feeds the current local time, timezone and UTC into the context on every prompt. Use when the user asks what time it is, mentions that Claude got the time or timezone wrong, wants extra timezones shown, wants the time format changed, wants to turn the clock off, or asks how the clock hook works.
Stjojaiss/claude-code-clock · ★ 0 · AI & Automation · score 62
Install: claude install-skill Stjojaiss/claude-code-clock
# Clock A `UserPromptSubmit` hook that prints the current local time, timezone and UTC time. Claude Code injects that stdout into the model context, so the time is correct on every single prompt instead of being frozen at session start. ## Read the time, do not guess it The current time is already in the context of this turn. It looks like this: ``` Current local time: Tuesday, 2026-08-04 10:21:45 WEST (UTC+0100) | Timezone: Europe/Lisbon | UTC: 2026-08-04 09:21:45 ``` Rules: 1. Answer time questions from that line. Never estimate, never reuse a time from earlier in the conversation, and never fall back to the date in the system prompt, which carries no clock and no timezone. 2. If the line is missing, the hook is not installed or not firing. Go to Troubleshooting instead of guessing. 3. For durations and deadlines, compute from the UTC value and state the timezone you used. A wrong assumed timezone is the most common source of an off by one day answer. 4. For other timezones, convert from the UTC value, not from local time. ## Configuration All settings are environment variables. Put them in the `env` block of `~/.claude/settings.json` (global) or `.claude/settings.json` (per project): ```json { "env": { "CLAUDE_CLOCK_ZONES": "America/New_York,Asia/Tokyo", "CLAUDE_CLOCK_FORMAT": "%Y-%m-%d %H:%M %Z", "CLAUDE_CLOCK_UTC": "0" } } ``` | Variable | Effect | Default | | --- | --- | --- | | `CLAUDE_CLOCK_FORMAT` | strftime format for the loc