Use all configured date format when converting a date with params.date('paramName')
Open
info: workaround available
type: improvement
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
When a date is converted via `params.date('paramName')`, the conversion is attempted using only the format `yyyy-MM-dd HH:mm:ss.S`.
For the sake of consistency, it would be preferable if the conversion is attempted using all the formats configured under the key `grails.databinding.dateFormats`
Contributor guide
Research direction
Start at the params.date('paramName') conversion entry point and inspect how the grails.databinding.dateFormats configuration is read. Check existing date-conversion tests if present; done means conversion attempts all configured date formats rather than only yyyy-MM-dd HH:mm:ss.S.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100