Skip to content

Datepicker date appears in US number format on selection #1306

@NatMaeTan

Description

@NatMaeTan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI fixbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions