Pages
Introduction Colors & Tokens Icons
UI
Button Link Badge Notification Badge Alert Card Spinner Avatar Divider Empty State
Interactive
Modal Side Modal Dropdown Tooltip Accordion Tabs Flash Toast
Forms
Form Select Toggle Checkbox & Radio Text Fields Date & Time Fields
Layout
Navbar Sidebar Table Pagination Breadcrumbs Selector List
Utilities
Local Time

Local Time

Renders a UTC timestamp that the browser rewrites to the viewer's local time and timezone.

Usage

Created at: 09/07/2026 14:30

Nil-safe: nil

%p
  Created at:
  = app_theme_local_time(Time.utc(2026, 7, 9, 14, 30))
%p
  Nil-safe:
  = app_theme_local_time(nil).inspect