Web/ForgeTrust.Runnable.Web.RazorWire/TagHelpers/LocalTimeTagHelper.cs

LocalTimeTagHelper

Type

LocalTimeTagHelper

Tag helper that renders a <time> element with a UTC timestamp for client-side time formatting.
When rw-type="local", the JavaScript runtime formats the timestamp to the user's local timezone. When rw-type="utc", the timestamp is formatted in UTC.
Method

Process(TagHelperContext, TagHelperOutput)

Renders a <time> element with the UTC timestamp in the datetime attribute and data attributes for client-side JavaScript formatting.