Compare commits
2 Commits
4c8c8e6bcd
...
daa50039a7
Author | SHA1 | Date | |
---|---|---|---|
daa50039a7 | |||
98bb99881d |
@ -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:
|
||||
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'})
|
||||
.format(new Date("#{Date.to_iso8601(@date, :extended)}"))
|
||||
|
@ -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:
|
||||
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
||||
.format(new Date("#{cast_datetime(@datetime)}"))
|
||||
|
Loading…
Reference in New Issue
Block a user