Skip to content

Commit

Permalink
Fix date format bug
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Aug 20, 2019
1 parent 7c582ea commit ed22fe1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ protected void generateNotNull(GenerateContext context) {
locale = localeValue.asString();
}
}
if (format.equals(JsonbDateFormat.DEFAULT_FORMAT) && context.getGlobalConfig().getDateFormat().isPresent()) {
format = context.getGlobalConfig().getDateFormat().get();
}

doGenerate(context, format, locale);
}
Expand Down

0 comments on commit ed22fe1

Please sign in to comment.