modelmapper / modelmapper-module-java8

ModelMapper Module for Java8
Apache License 2.0
14 stars 15 forks source link

Use instance of DateTimeFormatter instead of format string in Jsr310ModuleConfig #14

Closed jdmcmahan closed 4 years ago

jdmcmahan commented 4 years ago

Fixes issue #2

Allowing only String patterns severely limits the capability of DateTimeFormatter as it prevents features such as variable length tokens, case insensitivity, etc. as well as use of the predefined ISO/RFC formats. These changes add support for setting DateTimeFormatters in Jsr310ModuleConfig and Jsr310ModuleConfigBuilder while retaining as much pattern functionality as possible to avoid breaking existing logic.

chhsiao90 commented 4 years ago

Thanks @jdmcmahan !