apache / apache/grails-core

Use all configured date format when converting a date with params.date('paramName')

Open
#10,065 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.