sbglasius commented on code in PR #15146:
URL: https://github.com/apache/grails-core/pull/15146#discussion_r2435640587


##########
grails-gsp/plugin/src/main/groovy/org/grails/plugins/web/DefaultGrailsTagDateHelper.groovy:
##########
@@ -134,6 +134,8 @@ class DefaultGrailsTagDateHelper implements 
GrailsTagDateHelper {
                 zonedDateTime = ZonedDateTime.of(date, ZoneId.systemDefault())
             } else if (date instanceof LocalDate) {
                 zonedDateTime = ZonedDateTime.of(date, LocalTime.MIN, 
ZoneId.systemDefault())
+            } else if (date instanceof Instant) {
+                zonedDateTime = ZonedDateTime.ofInstant(date, 
ZoneId.systemDefault())

Review Comment:
   Perhaps, for a future version, make `ZoneId.systemDefault()` into something 
that could be configured?
   



-- 
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]

Reply via email to