davpin / cf-SpringBootTrader

Microservice version of the Spring Trader app using Spring Boot and Spring Cloud.
Apache License 2.0
104 stars 105 forks source link

Build fails in different locales from english #3

Closed davpin closed 9 years ago

davpin commented 9 years ago

The build fails due to not being able to parse dates from json:

` java.text.ParseException: Unparseable date: "Wed May 6 00:00:00 UTC-04:00 2015"

at java.text.DateFormat.parse(DateFormat.java:366)

at io.pivotal.quotes.configuration.TestConfiguration.quote(TestConfiguration.java:43)

`

and ` com.fasterxml.jackson.databind.JsonMappingException: Failed to parse Date value 'Thu Jun 11 00:00:00 UTC-04:00 2015' (format: "EEE MMM dd HH:mm:ss zzzXXX yyyy"): Unparseable date: "Thu Jun 11 00:00:00 UTC-04:00 2015" (through reference chain: io.pivotal.quotes.domain.Quote["Timestamp"])

        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210)

        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177)

`

Thanks to @flambiente-pivotal for uncovering this.