cityofaustin / atd-moped

A comprehensive mobility project tracking platform for Austin, Texas.
https://mobility.austin.gov/moped/
4 stars 3 forks source link

Format phase date fields exported from the project list view as month/date/year #1398

Closed mddilley closed 2 months ago

mddilley commented 2 months ago

Associated issues

https://github.com/cityofaustin/atd-data-tech/issues/18795

We store these phase dates as timestamps w/ timezone in the DB, and this updates the export to format them as dates only since we don't save the actual hours/minutes/seconds of phase dates.

Testing

URL to test:

https://deploy-preview-1398--atd-moped-main.netlify.app/moped/

Steps to test:

  1. Export the project list view and see that Construction Start and Completion Date are formatted as dates and not timestamps
  2. Compare to staging or production exports
  3. Check the Date uploaded column in the Project files table to make sure it still renders the same. This PR modifies the helper used for it.

Ship list