Skip to content

Commit 05a1245

Browse files
committed
use date format from #ad322458
1 parent 17e59d9 commit 05a1245

File tree

1 file changed

+2
-3
lines changed
  • graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema

1 file changed

+2
-3
lines changed

graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema/JavaScalars.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,10 @@ public static class GraphQLDateCoercing implements Coercing<Object, Object> {
199199

200200

201201
/**
202-
* Parse date strings matching DateFormat's locale-sensitive SHORT pattern,
203-
* see: https://docs.oracle.com/javase/tutorial/i18n/format/dateFormat.html
202+
* Default to pattern 'yyyy-MM-dd'
204203
*/
205204
public GraphQLDateCoercing() {
206-
df = DateFormat.getInstance();
205+
df = new SimpleDateFormat("yyyy-MM-dd");
207206
}
208207

209208
/**

0 commit comments

Comments
 (0)