codeconsole commented on code in PR #16411:
URL: https://github.com/apache/grails-core/pull/16411#discussion_r4125740373
##########
grails-databinding/src/main/groovy/org/grails/databinding/converters/Jsr310ConvertersConfiguration.groovy:
##########
@@ -349,6 +351,35 @@ class Jsr310ConvertersConfiguration {
}
}
+ /**
+ * Binds a {@link Month} from its number, 1 for January through 12 for
December, which is how
+ * {@code grails.converters.JSON}, JSON views and Spring Boot render a
Month. Without it a number would bind
+ * through Spring's conversion service by ordinal, one month late. A month
name still binds as any enum does.
Review Comment:
Applied in ede7ecf7e3, with the `MonthBindingSpec` class Javadoc and the
`Jsr310ConvertersConfigurationSpec` feature name.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]