use existing shortcuts for date and time format (#929)

This commit is contained in:
Jeldrik Hanschke 2024-02-17 23:44:26 +01:00 committed by GitHub
parent 3f038097e0
commit fb61a07934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,38 +9,20 @@
<p class="description">{{poll.description}}</p> <p class="description">{{poll.description}}</p>
<p class="dates"> <p class="dates">
<span class="creationDate"> <span class="creationDate">
{{!
TODO: Simplify to dateStyle="full" and timeStyle="short" after upgrading to Ember Intl v6
}}
{{t {{t
"poll.created-date" "poll.created-date"
date=(format-date date=(format-date
poll.creationDate poll.creationDate dateStyle="full" timeStyle="short"
weekday="long"
day="numeric"
month="long"
year="numeric"
hour="numeric"
minute="numeric"
) )
}} }}
</span> </span>
{{#if poll.expirationDate}} {{#if poll.expirationDate}}
<br /> <br />
<span class="expirationDate"> <span class="expirationDate">
{{!
TODO: Simplify to dateStyle="full" and timeStyle="short" after upgrading to Ember Intl v6
}}
{{t {{t
"poll.expiration-date" "poll.expiration-date"
date=(format-date date=(format-date
poll.expirationDate poll.expirationDate dateStyle="full" timeStyle="short"
weekday="long"
day="numeric"
month="long"
year="numeric"
hour="numeric"
minute="numeric"
) )
}} }}
</span> </span>