LocalTimeTag
struct LocalTimeTag : LeafTag
Return an ISO8601-ish time string for use with the HTML datetime-local form input type. It cannot take an ISO8601 since that requires a timezone to be included (suffix of [+-]H:MM) and the input chokes on that. So here we translate the following:
“2022-02-13 02:00:00 +0000” (Date) -> “2022-02-12T18:00:00” (String)
-
Declaration
Swift
func render(_ ctx: LeafContext) throws -> LeafData