Skip to content

Commit

Permalink
changed date format to have leading zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Jun 12, 2024
1 parent 8b2dcda commit 21e5c5c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
colspan="2"
data-test-start-date
>
{{format-date @report.startDate}}
{{format-date @report.startDate day="2-digit" month="2-digit" year="numeric"}}
</td>
<td
class="text-center hide-from-small-screen"
colspan="2"
data-test-end-date
>
{{format-date @report.endDate}}
{{format-date @report.endDate day="2-digit" month="2-digit" year="numeric"}}
</td>
<td
class="text-center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<span>
{{#if @canUpdate}}
<EditableField
@value={{format-date @report.startDate}}
@value={{format-date @report.startDate day="2-digit" month="2-digit" year="numeric"}}
@save={{perform this.changeStartDate}}
@close={{this.revertStartDateChanges}}
>
Expand All @@ -60,7 +60,7 @@
<ValidationError @errors={{get-errors-for this.startDate}} />
</EditableField>
{{else}}
{{format-date @report.startDate}}
{{format-date @report.startDate day="2-digit" month="2-digit" year="numeric"}}
{{/if}}
</span>
</div>
Expand All @@ -71,7 +71,7 @@
<span>
{{#if @canUpdate}}
<EditableField
@value={{format-date @report.endDate}}
@value={{format-date @report.endDate day="2-digit" month="2-digit" year="numeric"}}
@save={{perform this.changeEndDate}}
@close={{this.revertEndDateChanges}}
>
Expand All @@ -83,7 +83,7 @@
<ValidationError @errors={{get-errors-for this.endDate}} />
</EditableField>
{{else}}
{{format-date @report.endDate}}
{{format-date @report.endDate day="2-digit" month="2-digit" year="numeric"}}
{{/if}}
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
</td>
<td class="text-center hide-from-small-screen" colspan="2" data-test-start-date>
{{#if @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.notApplicableAbbr"}}
{{/if}}
</td>
<td class="text-center hide-from-small-screen" colspan="2" data-test-end-date>
{{#if @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.notApplicableAbbr"}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
{{#if this.course}}
<span class="details" data-test-course-details>
{{t "general.level"}}: {{this.course.level}},
{{t "general.startDate"}}: {{format-date this.course.startDate}},
{{t "general.endDate"}}: {{format-date this.course.endDate}}
{{t "general.startDate"}}: {{format-date this.course.startDate day="2-digit" month="2-digit" year="numeric"}},
{{t "general.endDate"}}: {{format-date this.course.endDate day="2-digit" month="2-digit" year="numeric"}}
{{#if this.course.clerkshipType}}
- {{t "general.clerkship"}} ({{this.course.clerkshipType.title}})
{{/if}}
Expand Down Expand Up @@ -176,15 +176,15 @@
{{on "click" (set this.isEditingDatesAndDuration true)}}
>
{{#if @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.clickToEdit"}}
{{/if}}
</button>
{{else}}
<span>
{{#if @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate}}
{{format-date @sequenceBlock.startDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.notApplicableAbbr"}}
{{/if}}
Expand All @@ -201,15 +201,15 @@
{{on "click" (set this.isEditingDatesAndDuration true)}}
>
{{#if @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.clickToEdit"}}
{{/if}}
</button>
{{else}}
<span>
{{#if @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate}}
{{format-date @sequenceBlock.endDate day="2-digit" month="2-digit" year="numeric"}}
{{else}}
{{t "general.notApplicableAbbr"}}
{{/if}}
Expand Down

0 comments on commit 21e5c5c

Please sign in to comment.