Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to use Java Time instead of java.util.Date #253

Closed
ivan-mladenovic opened this issue May 9, 2018 · 1 comment
Closed
Labels
enhancement v2 Feature will be implemented in v2.0 only (master branch)

Comments

@ivan-mladenovic
Copy link

Please add an option to be able to use Java Time instead of java.util.Date.

@stojsavljevic stojsavljevic added enhancement v2 Feature will be implemented in v2.0 only (master branch) labels May 9, 2018
@stojsavljevic
Copy link
Contributor

Now you can use generationConfig to configure desired date and time types.
Example config:

<configuration>
	...
	<generationConfig>
		...
		<dateTimeType>java.time.ZonedDateTime</dateTimeType>
		<dateType>java.time.LocalDate</dateType>
		<timeType>java.time.LocalTime</timeType>
	</generationConfig> 
</configuration>

This applies to data types, query and uri parameters and headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement v2 Feature will be implemented in v2.0 only (master branch)
Projects
None yet
Development

No branches or pull requests

2 participants