Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normalize date display format for print course #7900

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
{{@session.ilmSession.hours}}
</td>
<td>
{{format-date @session.ilmSession.dueDate}}
{{format-date @session.ilmSession.dueDate month="2-digit" day="2-digit" year="numeric"}}
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -240,9 +240,9 @@
{{#each this.offerings as |offering|}}
<tr>
<td class="text-left">
{{format-date offering.startDate month="numeric" day="numeric" year="numeric" hour12=true hour="numeric" minute="numeric"}}
{{format-date offering.startDate month="2-digit" day="2-digit" year="numeric" hour12=true hour="2-digit" minute="2-digit"}}
-
{{format-date offering.endDate month="numeric" day="numeric" year="numeric" hour12=true hour="numeric" minute="numeric"}}
{{format-date offering.endDate month="2-digit" day="2-digit" year="numeric" hour12=true hour="2-digit" minute="2-digit"}}
</td>
<td class="text-left">
{{offering.room}}
Expand Down
4 changes: 2 additions & 2 deletions packages/ilios-common/addon/components/print-course.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{{t "general.start"}}:
</label>
<div>
{{format-date @course.startDate}}
{{format-date @course.startDate day="2-digit" month="2-digit" year="numeric"}}
</div>
</div>
<div class="inline-label-data-block">
Expand All @@ -52,7 +52,7 @@
{{t "general.end"}}:
</label>
<div>
{{format-date @course.endDate}}
{{format-date @course.endDate day="2-digit" month="2-digit" year="numeric"}}
</div>
</div>
<br>
Expand Down