Created a field to represent months. Settings are:
Widget Type: Text field with custom input format
Default value: now
Format: mm/dd/yyyy hh:mm:ss pm
Required
1 value
No to date
Granularity: year, month
Custom Display format: F Y
No time zone conversion
I then created content that used the field. When I enter a month, if I enter it as "09/2008" I get "September, 2008". If I enter it as "9/2008" I get "January, 2008". In other words, not typing the leading "0" on the month is accepted as input, but results in the date being set to January of the specified year.
I would expect the input field to parse user typed input without requiring a leading "0", or at the very least notify the user and reject the input.
Comments
Comment #1
karens commentedI can't replicate this in the latest code. There are a number of fixes to the year-only and month-and-year handling that could have fixed this. The fixes are in -dev.