-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
JacksonAutoConfiguration
configures default time zone as UTC
(L136).
But, if want to use the default time zone, there's no way to achieve it with autoconfiguration. To achieve the default time zone, we must register a custom message converter bean.
Using the default date format with the default time zone looks more convenient. In this case, if want to use UTC time zone, we can easily set it up in spring.jackson.time-zone
property.
Default time zone should be like this
new JacksonJodaDateFormat(DateTimeFormat.forPattern(jacksonProperties.getDateFormat()).withZone(DateTimeZone.getDefault());
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply