Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jackson configuration of date format doesn't seem to work #2322

Closed
lazee opened this issue Jan 9, 2015 · 10 comments
Closed

Jackson configuration of date format doesn't seem to work #2322

lazee opened this issue Jan 9, 2015 · 10 comments
Assignees

Comments

@lazee
Copy link

lazee commented Jan 9, 2015

According to this documentation (http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html) I should be able to configure the Jackson date format by configuring spring.jackson.date-format in application.properties. But this just doesn't seem to work.

@lazee
Copy link
Author

lazee commented Jan 9, 2015

Forgot to mention that I'm running Boot 1.2.0. I will test on 1.2.1 now.

@lazee
Copy link
Author

lazee commented Jan 9, 2015

Same issue with 1.2.1

These are the settings in my application.yml

spring:
  jackson:
    date-format: "YYYY-MM"

I have also tried with othere examples from the doc I linked to.

@philwebb philwebb added this to the 1.2.2 milestone Jan 12, 2015
@wilkinsona
Copy link
Member

This seems similar to #2225. @lazee what dependencies does your app have where the date format configuration isn't working?

@wilkinsona wilkinsona self-assigned this Jan 15, 2015
@wilkinsona
Copy link
Member

This works for me both with and without Spring HATEOAS/Spring Data REST on the classpath. @lazee Can you provide a small sample that reproduces the problem please?

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Jan 15, 2015
@lazee
Copy link
Author

lazee commented Jan 15, 2015

@wilkinsona Will do as soon as possible.

@wilkinsona
Copy link
Member

@lazee Are you, by any chance, trying to format a Joda DateTime?

@lazee
Copy link
Author

lazee commented Jan 15, 2015

@wilkinsona No. I will try to reproduce it from a plain app now. It might be something in my project.

@wilkinsona
Copy link
Member

@lazee Any joy reproducing this will a plain app?

@wilkinsona
Copy link
Member

In the absence of an example of the failure, I'm going to close this. @lazee If you manage to reproduce this, please comment with the details and we'll re-open the issue.

@wilkinsona wilkinsona removed the status: waiting-for-feedback We need additional information before we can continue label Feb 5, 2015
@wilkinsona wilkinsona removed this from the 1.2.2 milestone Feb 5, 2015
@lazee
Copy link
Author

lazee commented Feb 9, 2015

Hi @wilkinsona. Sorry that I haven't been following up on this one. I have done some testing now and I'm not able to reproduce the problem in a plain boot 1.2.1 setup. But I still have the problem in my original project. Really not sure what causes this, so I have to do some more testing. I will reopen this issue if I'm able to find what causes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants