Compare commits

..

2 Commits

Author SHA1 Message Date
4c8c8e6bcd use .link helpers
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-18 00:46:03 -04:00
f814fd74a1 add ids to dynamic date and datetime elements 2023-03-18 00:45:16 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<time :if={@date} id={@id} datetime={@date |> Date.to_iso8601(:extended)} x-data={~s<{ <time :if={@date} datetime={@date |> Date.to_iso8601(:extended)} x-data={~s<{
date: date:
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'}) Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'})
.format(new Date("#{Date.to_iso8601(@date, :extended)}")) .format(new Date("#{Date.to_iso8601(@date, :extended)}"))

View File

@ -1,4 +1,4 @@
<time :if={@datetime} id={@id} datetime={cast_datetime(@datetime)} x-data={~s/{ <time :if={@datetime} datetime={cast_datetime(@datetime)} x-data={~s/{
datetime: datetime:
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'}) Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
.format(new Date("#{cast_datetime(@datetime)}")) .format(new Date("#{cast_datetime(@datetime)}"))