You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The GovDateInput widget renders the day and month fields with leading zeros, for example 02 03 2007. This is contrary to what is recommended by the dates pattern which is to omit leading zeros.
Describe the bug
The
GovDateInput
widget renders the day and month fields with leading zeros, for example02 03 2007
. This is contrary to what is recommended by the dates pattern which is to omit leading zeros.To Reproduce
Or formatted:
Expected behavior
I would expect the day and month field values not to have leading zeros:
This behaviour is due to the format used in GovDateInput:
%d %m %Y
. To omit leading zeros we can use%-d %-m %Y
, although this is platform dependent.The text was updated successfully, but these errors were encountered: