Skip to content

Commit 2cfb98c

Browse files
committed
change default date format to dd-MMM-yyyy fix #442
1 parent 910f063 commit 2cfb98c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coverage-report/src/test/java/org/jooby/BuiltinBodyParserFeature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public Object dateBody(final @Body LocalDate d) {
5757

5858
{
5959

60+
dateFormat("dd-MM-yy");
61+
6062
use(Resource.class);
6163

6264
post("/optional/int", req -> {

jooby/src/main/resources/org/jooby/jooby.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ application {
3131
charset = UTF-8
3232

3333
# date format
34-
dateFormat = dd-MM-yy
34+
dateFormat = dd-MMM-yyyy
3535

3636
# number format, system default. set it at runtime
3737
# numberFormat = DecimalFormat.getInstance(${application.lang})).toPattern()

0 commit comments

Comments
 (0)