arika0093/blazorlocaltime/blazor-local-time

Claude Code and agent skill by arika0093/blazorlocaltime

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use BlazorLocalTime whenever a Blazor application displays, edits, converts, or otherwise handles a user-facing date or time.

Install

npx vskill@latest install arika0093/blazorlocaltime/blazor-local-time

SKILL.md

BlazorLocalTime

Required rule

For every user-facing date or time, use BlazorLocalTime. Do not render an instant with DateTime.ToString() or DateTime.Now, and do not convert browser-local form input with DateTime.ToUniversalTime(); both use the server timezone.

Keep persisted and transmitted instants in UTC. Prefer DateTimeOffset where possible.

Components

  • Display a value with LocalTimeText.
  • Render a custom local-time view with LocalTime. Specify OnLoading or OnError when needed.
  • Edit a date or time with LocalTimeForm; bind inputs to its supplied context. It converts the local browser input back to UTC.
  • Render the current browser timezone with LocalTimeZone.
  • Use ILocalTimeService only for non-component conversion. Check IsTimeZoneInfoAvailable before converting. If no library component is rendered, place <BlazorLocalTimeProvider /> in a root component.

For example, to display a value in local time:

razor
@* Display a value in local time *@
<LocalTimeText Value="@utcValue" Format="yyyy-MM-dd HH:mm:ssK" />
@* Display a value in local time with a custom view *@
<LocalTime Value="@utcValue" Context="dt">
@dt.ToString("yyyy-MM-dd HH:mm:ss")
</LocalTime>
@* Form input in local time and save as UTC *@
<LocalTimeForm @bind-Value="Dt" Context="dtf">
<InputDate Type="InputDateType.DateTimeLocal" @bind-Value="dtf.Value" />
</LocalTimeForm>

Details

Read the usage guide and API reference for parameters, loading states, service events, timezone overrides, and testing.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/arika0093/blazorlocaltime/blazor-local-time/badge)](https://verified-skill.com/skills/arika0093/blazorlocaltime/blazor-local-time)

Something wrong with this skill or its page? Tell us.