use existing shortcuts for date and time format (#929)
This commit is contained in:
parent
3f038097e0
commit
fb61a07934
1 changed files with 2 additions and 20 deletions
|
@ -9,38 +9,20 @@
|
|||
<p class="description">{{poll.description}}</p>
|
||||
<p class="dates">
|
||||
<span class="creationDate">
|
||||
{{!
|
||||
TODO: Simplify to dateStyle="full" and timeStyle="short" after upgrading to Ember Intl v6
|
||||
}}
|
||||
{{t
|
||||
"poll.created-date"
|
||||
date=(format-date
|
||||
poll.creationDate
|
||||
weekday="long"
|
||||
day="numeric"
|
||||
month="long"
|
||||
year="numeric"
|
||||
hour="numeric"
|
||||
minute="numeric"
|
||||
poll.creationDate dateStyle="full" timeStyle="short"
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
{{#if poll.expirationDate}}
|
||||
<br />
|
||||
<span class="expirationDate">
|
||||
{{!
|
||||
TODO: Simplify to dateStyle="full" and timeStyle="short" after upgrading to Ember Intl v6
|
||||
}}
|
||||
{{t
|
||||
"poll.expiration-date"
|
||||
date=(format-date
|
||||
poll.expirationDate
|
||||
weekday="long"
|
||||
day="numeric"
|
||||
month="long"
|
||||
year="numeric"
|
||||
hour="numeric"
|
||||
minute="numeric"
|
||||
poll.expirationDate dateStyle="full" timeStyle="short"
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue