Compare commits

..

2 Commits

Author SHA1 Message Date
daa50039a7 use .link helpers
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-18 00:47:02 -04:00
98bb99881d add ids to dynamic date and datetime elements 2023-03-18 00:47:02 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<time :if={@date} datetime={@date |> Date.to_iso8601(:extended)} x-data={~s<{ <time :if={@date} id={@id} 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} datetime={cast_datetime(@datetime)} x-data={~s/{ <time :if={@datetime} id={@id} 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)}"))