Merge pull request #1690 from ebean-orm/feature/1686

#1686 - Change the default JSON format to ISO8601 for date and datetime types (from epoch millis)
This commit is contained in:
Rob Bygrave
2019-04-30 20:18:20 +12:00
committed by GitHub
4 changed files with 11 additions and 11 deletions
@@ -169,12 +169,12 @@ public class ServerConfig {
/**
* The JSON format used for DateTime types. Default to millis.
*/
private JsonConfig.DateTime jsonDateTime = JsonConfig.DateTime.MILLIS;
private JsonConfig.DateTime jsonDateTime = JsonConfig.DateTime.ISO8601;
/**
* The JSON format used for Date types. Default to millis.
*/
private JsonConfig.Date jsonDate = JsonConfig.Date.MILLIS;
private JsonConfig.Date jsonDate = JsonConfig.Date.ISO8601;
/**
* For writing JSON specify if null values or empty collections should be exluded.