department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Inconsistent date formatting on appointment confirmation pages #51467

Closed ryanshaw closed 1 year ago

ryanshaw commented 1 year ago

Summary

In various places within the appointment flows dates are displayed within inconsistent formatting. In some places 2022-01-03 is formatted as January 02, 2023 and in other places it is formatted as January 2, 2023. This should be consistent throughout and the the preferred format is January 2, 2023.

Steps to Reproduce

Test User: cecil.morgan@id.me

This can be reproduced by using this test user and scheduling a first COVID-19 vaccination appointment and also by scheduling a directly scheduled appointment.

Actual Result

Screen Shot 2023-01-04 at 9 20 02 AM Screen Shot 2023-01-04 at 9 19 40 AM Screen Shot 2023-01-04 at 9 14 58 AM

Desired Result

Dates should be formatted consistently with no leading 0 for the day number if it is < 10.

Definition of Done

ldelacosta commented 1 year ago

Validated in staging. No issues reported.Screen Shot 2023-02-08 at 11.51.12 AM.png