Skip to content

Add World Clock tool - #7

Merged
02karthik merged 1 commit into
mainfrom
claude/stoic-pascal-5l1w4c
Jul 29, 2026
Merged

Add World Clock tool#7
02karthik merged 1 commit into
mainfrom
claude/stoic-pascal-5l1w4c

Conversation

@02karthik

Copy link
Copy Markdown
Collaborator

What is this tool?

World Clock — a single-file tool for anyone coordinating across time zones. It shows the current time in a set of cities worldwide, and a meeting-planner slider lets you scrub time forward or back to find a slot that works everywhere. The catalog had fun, wellness, writing, and reading tools but no time/clock tool — this fills that gap in the Productive category.

Each city row shows the local time (with AM/PM), the date, a ☀️/🌙 day-night indicator, the offset relative to your home zone, and a "Next day / Prev day" marker when the calendar date differs. Your home zone is auto-detected and highlighted; you can re-home to any city or add/remove cities.

All time-zone conversion is done with the built-in Intl API, so it is DST-safe and needs no network.

Checklist

  • It's a single file: world-clock/index.html with all CSS + JS inline.
  • It is fully self-contained / offline — no remote fonts, scripts, styles, images, fetch, or import. System fonts only; all logic uses Intl + localStorage.
  • No analytics, trackers, or phone-home behavior.
  • Added a screenshot at screenshots/world-clock.webp (800×500).
  • Registered the tool in tools.json (dir = world-clock, matches the folder name).
  • Bumped the top-level catalogVersion (17 → 18).
  • New tool — per-tool version is 1.
  • npm run validate passes locally (✓ catalog valid — 24 tool(s), catalogVersion 18).

Notes for reviewers

  • DST correctness: offsets are computed per-instant from Intl.DateTimeFormat(...).formatToParts, not from stored numbers, so summer/winter transitions are handled automatically. The screenshot (rendered in July) correctly shows Los Angeles at −7h and New York at −4h from UTC.
  • Home detection: falls back to America/New_York if resolvedOptions().timeZone is unavailable.
  • Live tick: re-renders every second against the wall clock; the planner offset is preserved relative to now so the display stays current while you plan.
  • Design system: azure #4d63ff primary, Manrope 900 display heading, mist canvas / white cards, 24px card radius — matching the Hillnote design language.

Generated by Claude Code

A single-file, offline tool that shows the current time across cities
worldwide and includes a meeting planner slider to find a slot that works
in every time zone.

- DST-safe time-zone math via the built-in Intl API (no network)
- Curated list of 40+ major cities; auto-detects the user's home zone
- Day/night indicator, offset + day-difference vs home, live per-second tick
- State persisted in localStorage under a namespaced key
- Styled to the Hillnote design system (azure accent, Manrope display,
  mist canvas, 24px card radius)

Registered in tools.json and bumped catalogVersion to 18.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DAgsvtGjWeRkxb5vgqdsgS
@02karthik
02karthik merged commit 27ea88b into main Jul 29, 2026
1 check passed
@02karthik
02karthik deleted the claude/stoic-pascal-5l1w4c branch July 29, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants