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="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>
|
||||||
|
|
Loading…
Reference in a new issue