basecamp/local_time
Rails engine for cache-friendly, client-side local time observed · 2026-10-08
Health v2 · maintenance only
77/100
- Activity 84
- Release rhythm 54
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4720
- days_rel: 99
- days_push: 99
- n_releases_24m: 1
Adoption not part of the score
2002 stars · 124 forks observed · 2026-10-08
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rails engine with a companion JavaScript component that renders <time> elements in UTC server-side and converts them to the browser's local time on the client. This keeps pages cache-friendly while still showing users times and dates in their own timezone.
Use cases
- display timestamps in the user's local timezone in a Rails app
- show cached pages with correct local times
- render relative 'time ago' strings like '5 minutes ago'
- format dates and times client-side with strftime patterns
- avoid per-user timezone caching problems
When to choose
- you have a Rails app with page or fragment caching and need per-user local times
- you want simple <time> element localization without heavy JS frameworks
- you need relative time-ago display that updates in the browser
When to avoid
- your app is not built on Ruby on Rails
- you need full i18n/localization beyond date and time formatting
- you need a complete strftime implementation with all directives
Facets
library · maturity stable
templating date-time frontend-framework web-development backend browser ruby rails-engine timezone cache-friendly time-display client-side-rendering localization web-server javascript nodejs
1 source
- readme: https://github.com/basecamp/local_time · fetched 2026-10-08 · 947b3af7e606
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| basecamp/local_time | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="basecamp/local_time")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem