opengovsg / checkfirst

Don't Know? CheckFirst. A tool to build eligibility checkers and calculators for Singapore Government policies
https://checkfirst.gov.sg
Other
12 stars 6 forks source link

Datepicker date appears in US number format on selection #1306

Open NatMaeTan opened 2 years ago

NatMaeTan commented 2 years ago

Describe the bug Datepickers in checkers show dates as dd mmm yyyy, but when changing the date it changes to the yyyy-mm-dd format (i.e. 13 Jul 2022 on preview but 2022-07-13 on selection)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://www.checkfirst.gov.sg/c/bb2a6e22-99d3-40a0-a6b0-74718a6c1ada'
  2. Click on 'date picker'
  3. Select any date
  4. See wrong date format
  5. Click on date picker icon again, format changes to correct format

Expected behavior Date should always stay in DD MMM YYYY format, where MMM is in letters, i.e. 11 Jan 2022

Video https://user-images.githubusercontent.com/63220614/177967168-c78b6de3-ea70-4968-a7eb-d67bed45834c.mov

chasingtherain commented 1 year ago

Hi @NatMaeTan

Is this issue still available? If so, I would like to contribute to this issue.

LoneRifle commented 1 year ago

@chasingtherain - sure! CheckFirst isn't in active development now, but we'll be happy to review a PR you send in.